Fix shared mount of /run

Needs util-linux for now, see https://github.com/docker/moby/issues/424

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2016-08-22 23:04:57 +01:00
parent a8322804ef
commit 3f381afbfb
4 changed files with 5 additions and 2 deletions

View File

@@ -13,6 +13,9 @@ start()
pidfile="/run/docker.pid"
# mount /run shared eg for volume drivers
mount -o remount,bind,shared /run
# create cgroups mount for systemd containers
if [ ! -d /sys/fs/cgroup/systemd ]
then