orchardup/docker-postgresql

Permissions Error

Opened this issue · 2 comments

Run example as in README get


~ # ❯❯❯ docker logs f4e7287bfef7a19056488801f265a44318414103f29468bcbbe62541432606b2                                                                                                                    
sudo: unable to execute /usr/lib/postgresql/9.3/bin/postgres: Permission denied

Same for me. Tested on:
Docker version 0.9.1, build 3600720
Docker version 1.1.1, build bd609d2

Those permissions doesn't looks good :)

root@672128d7609a:/# ls -lha /   
total 17M
drwxr-xr-x  83 root root 4.0K Jul 22 08:36 .
drwxr-xr-x  83 root root 4.0K Jul 22 08:36 ..
-rwxr-xr-x   1 root root    0 Jul 22 08:36 .dockerenv
-rwx------   1 root root  17M Jul 22 08:27 .dockerinit
drwxr-xr-x   2 root root 4.0K Jul 17 03:38 bin
drwxr-xr-x   2 root root 4.0K Apr 10 22:12 boot
drwxr-xr-x   4 root root  360 Jul 22 08:36 dev
d--x--x---  91 root root 4.0K Jul 22 08:36 etc
drwxr-xr-x   2 root root 4.0K Apr 10 22:12 home
drwxr-xr-x  13 root root 4.0K Jul 21 22:39 lib
drwxr-xr-x   2 root root 4.0K Jul 17 03:34 lib64
drwxr-xr-x   2 root root 4.0K Jul 17 03:34 media
drwxr-xr-x   2 root root 4.0K Apr 10 22:12 mnt
drwxr-xr-x   2 root root 4.0K Jul 17 03:34 opt
dr-xr-xr-x 110 root root    0 Jul 22 08:36 proc
drwx------   2 root root 4.0K Jul 17 03:38 root
drwxr-xr-x   8 root root 4.0K Jul 21 22:39 run
drwxr-xr-x   2 root root 4.0K Jul 21 21:47 sbin
drwxr-xr-x   2 root root 4.0K Jul 17 03:34 srv
dr-xr-xr-x  13 root root    0 Jul 22 08:36 sys
drwxrwxrwt   2 root root 4.0K Jul 21 22:39 tmp
d--x--x---  19 root root 4.0K Jul 22 08:00 usr
d--x--x---  17 root root 4.0K Jul 22 07:59 var

Note: Image is OK, when build from repo

Maybe related to moby/moby#6047