Explorar o código

Merge pull request #37739 from kolyshkin/local-volume-mount-selinux

Fix relabeling local volume source dir
Sebastiaan van Stijn %!s(int64=6) %!d(string=hai) anos
pai
achega
91ca2a15f7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      daemon/volumes.go

+ 2 - 0
daemon/volumes.go

@@ -210,6 +210,8 @@ func (daemon *Daemon) registerMountPoints(container *container.Container, hostCo
 			mp.Name = v.Name
 			mp.Driver = v.Driver
 
+			// need to selinux-relabel local mounts
+			mp.Source = v.Mountpoint
 			if mp.Driver == volume.DefaultDriverName {
 				setBindModeIfNull(mp)
 			}