Merge pull request #210 from justincormack/bind-shared

Default bind mounts to rshared not rprivate if not specified
This commit is contained in:
Justin Cormack
2018-04-04 18:54:44 +01:00
committed by GitHub

View File

@@ -785,7 +785,8 @@ func ConfigInspectToOCI(yaml *Image, inspect types.ImageInspect, idMap map[strin
}
src := parts[0]
dest := parts[1]
opts := []string{"rw", "rbind", "rprivate"}
// default to rshared if not specified
opts := []string{"rw", "rbind", "rshared"}
if len(parts) == 3 {
opts = append(strings.Split(parts[2], ","), "rbind")
}