mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
12149e8293
commit
c9d71317be
1 changed files with 1 additions and 0 deletions
|
@ -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") != ""
|
||||||
|
|
Loading…
Reference in a new issue