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
commit f1ae82c9eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")
}