mktemp creates a root directory ("/") with permissions set to 700. Default should be 755 so other users in the container can access its subdirs (e.g http user for nginx for /srv/http/test/index.html).
Docker-DCO-1.1-Signed-off-by: Samuel Andaya <samuel@andaya.net> (github: sandaya)
| ... | ... |
@@ -15,6 +15,7 @@ hash expect &>/dev/null || {
|
| 15 | 15 |
} |
| 16 | 16 |
|
| 17 | 17 |
ROOTFS=$(mktemp -d /tmp/rootfs-archlinux-XXXXXXXXXX) |
| 18 |
+chmod 755 $ROOTFS |
|
| 18 | 19 |
|
| 19 | 20 |
# packages to ignore for space savings |
| 20 | 21 |
PKGIGNORE=linux,jfsutils,lvm2,cryptsetup,groff,man-db,man-pages,mdadm,pciutils,pcmciautils,reiserfsprogs,s-nail,xfsprogs |