From 9e7ca4531dd21c9650953376e396d5d87eb4e7f2 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Sun, 7 Apr 2013 10:07:10 -0700 Subject: [PATCH] fix(docker.service): remount everything as private lxc uses pivot_root. pivot_root doesn't like shared mounts[1]. Disable shared mounts before starting docker. [1] https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/sect-Using_the_mount_Command-Mounting-Bind.html --- .../coreos-overlay/app-emulation/docker/files/docker.service | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service index c7aa195a31..5ed13cb47f 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service @@ -1,4 +1,5 @@ [Service] +ExecStartPre=/bin/mount --make-rprivate / ExecStartPre=/sbin/brctl addbr lxcbr0 ExecStartPre=/bin/ifconfig lxcbr0 10.65.41.1 ExecStart=/usr/bin/docker -d