dev: Revert "Don't ignore container mounts based on their path"

This reverts commit 08909b2213.

We should not be passing any bind-mounts from /dev, /sys and /proc.
Mounting these from the host inside the container does not make
sense as these files are relevant to the host OS.

Fixes #219

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde
2018-04-16 11:37:11 -07:00
parent 1c7a02e73d
commit 10c596a4ff
3 changed files with 37 additions and 1 deletions

View File

@@ -290,7 +290,7 @@ func (c *Container) createContainersDirs() error {
func (c *Container) mountSharedDirMounts(hostSharedDir, guestSharedDir string) ([]Mount, error) {
var sharedDirMounts []Mount
for idx, m := range c.mounts {
if m.Type != "bind" {
if isSystemMount(m.Destination) || m.Type != "bind" {
continue
}