From c9d71317be5fd13ba544a2699442a40ccf2cc3cc Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 10 Jun 2015 11:29:27 -0700 Subject: [PATCH] Revert shared container rootfs This is breaking various setups where the host's rootfs is mount shared correctly and breaks live migration with bind mounts. Signed-off-by: Michael Crosby --- daemon/execdriver/driver_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/execdriver/driver_linux.go b/daemon/execdriver/driver_linux.go index 63d043e851..5863467aa2 100644 --- a/daemon/execdriver/driver_linux.go +++ b/daemon/execdriver/driver_linux.go @@ -24,6 +24,7 @@ func InitContainer(c *Command) *configs.Config { container.Devices = c.AutoCreatedDevices container.Rootfs = c.Rootfs container.Readonlyfs = c.ReadonlyRootfs + container.Privatefs = true // check to see if we are running in ramdisk to disable pivot root container.NoPivotRoot = os.Getenv("DOCKER_RAMDISK") != ""