Merge pull request #53 from riyazdf/rbind

Always include rbind in user-specified volume options
This commit is contained in:
Justin Cormack
2017-05-26 23:56:06 +01:00
committed by GitHub

View File

@@ -477,7 +477,7 @@ func ConfigInspectToOCI(yaml MobyImage, inspect types.ImageInspect) (specs.Spec,
dest := parts[1]
opts := []string{"rw", "rbind", "rprivate"}
if len(parts) == 3 {
opts = strings.Split(parts[2], ",")
opts = append(strings.Split(parts[2], ","), "rbind")
}
mounts[dest] = specs.Mount{Destination: dest, Type: "bind", Source: src, Options: opts}
}