From 663ee91eec01706008046c1df2c307716f9288db Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 22 Aug 2018 17:45:44 +0200 Subject: Fix Mount Propagation Default mount propagation inside of containes should be private Signed-off-by: Daniel J Walsh Closes: #1305 Approved by: mheon --- libpod/container_internal_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index ba02c9f5a..c0912dc0d 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -107,7 +107,7 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) { Type: "bind", Source: srcPath, Destination: dstPath, - Options: []string{"rw", "bind"}, + Options: []string{"rw", "bind", "private"}, } if !MountExists(g.Mounts(), dstPath) { g.AddMount(newMount) -- cgit v1.2.3-54-g00ecf