1
0
mirror of https://github.com/rancher/os.git synced 2025-09-24 20:09:21 +00:00

/media and /mnt mounted as shared for console

This commit is contained in:
Darren Shepherd
2016-06-15 16:41:42 -07:00
parent c138ecb54d
commit 924e4b8aae
15 changed files with 68 additions and 2 deletions

View File

@@ -19,4 +19,10 @@ for i in /opt/bin /usr/local/bin; do
fi
done
mount --make-shared /
if [ "$(grep '/var/lib/docker /var/lib/docker ' /proc/self/mountinfo | awk '{print $9}')" = "rootfs" ]; then
export DOCKER_RAMDISK=1
fi
exec /usr/bin/dockerlaunch $DOCKER_BIN "$@" $DOCKER_OPTS >>/var/log/docker.log 2>&1