Do not relabel if user did not request it for non local volumes
Signed-off-by: Dan Walsh <dwalsh@redhat.com> Upstream-commit: 843a119d49d2b4ba0a15188843b28763b13e62c6 Component: engine
This commit is contained in:
@@ -128,7 +128,9 @@ func (daemon *Daemon) registerMountPoints(container *container.Container, hostCo
|
||||
// bind.Name is an already existing volume, we need to use that here
|
||||
bind.Driver = v.DriverName()
|
||||
bind.Named = true
|
||||
bind = setBindModeIfNull(bind)
|
||||
if bind.Driver == "local" {
|
||||
bind = setBindModeIfNull(bind)
|
||||
}
|
||||
}
|
||||
if label.RelabelNeeded(bind.Mode) {
|
||||
if err := label.Relabel(bind.Source, container.MountLabel, label.IsShared(bind.Mode)); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user