瀏覽代碼

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 <crosbymichael@gmail.com>
Michael Crosby 10 年之前
父節點
當前提交
c9d71317be
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      daemon/execdriver/driver_linux.go

+ 1 - 0
daemon/execdriver/driver_linux.go

@@ -24,6 +24,7 @@ func InitContainer(c *Command) *configs.Config {
 	container.Devices = c.AutoCreatedDevices
 	container.Devices = c.AutoCreatedDevices
 	container.Rootfs = c.Rootfs
 	container.Rootfs = c.Rootfs
 	container.Readonlyfs = c.ReadonlyRootfs
 	container.Readonlyfs = c.ReadonlyRootfs
+	container.Privatefs = true
 
 
 	// check to see if we are running in ramdisk to disable pivot root
 	// check to see if we are running in ramdisk to disable pivot root
 	container.NoPivotRoot = os.Getenv("DOCKER_RAMDISK") != ""
 	container.NoPivotRoot = os.Getenv("DOCKER_RAMDISK") != ""