Mount /run as shared

This is needed for volume drivers as they will mount their
volumes under here, and if they are running in a container
docker on the host will need to see these.

Also provide our own fstab, removes the media devices that were
there previously.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-08-09 11:39:38 +01:00
parent f1f73ad14e
commit 398ade787e
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
all: initrd.img.gz mobylinux-efi.iso
ETCFILES=etc/issue etc/motd etc/network/interfaces
ETCFILES+=etc/inittab
ETCFILES+=etc/inittab etc/fstab
initrd.img: Dockerfile mkinitrd.sh init $(ETCFILES)
rm -f initrd.img

1
alpine/etc/fstab Normal file
View File

@ -0,0 +1 @@
tmpfs /run tmpfs defaults,nodev,relatime,size=10%,mode=755,shared 0 0