mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 01:29:07 +00:00
Always include rbind in user-specified options
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
parent
e8dc61e910
commit
11ebab55e2
@ -477,7 +477,7 @@ func ConfigInspectToOCI(yaml MobyImage, inspect types.ImageInspect) (specs.Spec,
|
|||||||
dest := parts[1]
|
dest := parts[1]
|
||||||
opts := []string{"rw", "rbind", "rprivate"}
|
opts := []string{"rw", "rbind", "rprivate"}
|
||||||
if len(parts) == 3 {
|
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}
|
mounts[dest] = specs.Mount{Destination: dest, Type: "bind", Source: src, Options: opts}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user