containerd/cmd/containerd-shim
Ian Campbell 8b365117a2 containerd-shim: Do not remount root MS_SLAVE
Mounting as MS_SLAVE here breaks use cases which want to use
rootPropagation=shared in order to expose mounts to the host (and other
containers binding the same subtree), mounting as e.g. MS_SHARED is pointless
in this context so just remove.

Having done this we also need to arrange to manually clean up the mounts on
delete, so do so.

Note that runc will also setup root as required by rootPropagation, defaulting
to MS_PRIVATE.

Fixes #1132.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-07-20 10:50:08 +01:00
..
main_unix.go containerd-shim: Do not remount root MS_SLAVE 2017-07-20 10:50:08 +01:00
shim_linux.go containerd-shim: Do not remount root MS_SLAVE 2017-07-20 10:50:08 +01:00
shim_unix.go containerd-shim: Do not remount root MS_SLAVE 2017-07-20 10:50:08 +01:00