Signed-off-by: Dan Walsh <dwalsh@redhat.com>
Dan Walsh authored on 2016/02/02 23:02:37... | ... |
@@ -128,7 +128,9 @@ func (daemon *Daemon) registerMountPoints(container *container.Container, hostCo |
128 | 128 |
// bind.Name is an already existing volume, we need to use that here |
129 | 129 |
bind.Driver = v.DriverName() |
130 | 130 |
bind.Named = true |
131 |
- bind = setBindModeIfNull(bind) |
|
131 |
+ if bind.Driver == "local" { |
|
132 |
+ bind = setBindModeIfNull(bind) |
|
133 |
+ } |
|
132 | 134 |
} |
133 | 135 |
if label.RelabelNeeded(bind.Mode) { |
134 | 136 |
if err := label.Relabel(bind.Source, container.MountLabel, label.IsShared(bind.Mode)); err != nil { |