From 11ebab55e2a36ea2c01159b6f0921356c79ead55 Mon Sep 17 00:00:00 2001 From: Riyaz Faizullabhoy Date: Fri, 26 May 2017 15:39:57 -0700 Subject: [PATCH] Always include rbind in user-specified options Signed-off-by: Riyaz Faizullabhoy --- cmd/moby/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/moby/config.go b/cmd/moby/config.go index dd445e0bf..793891a57 100644 --- a/cmd/moby/config.go +++ b/cmd/moby/config.go @@ -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} }