Browse Source

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

Fix relabeling local volume source dir
Sebastiaan van Stijn 6 years ago
parent
commit
91ca2a15f7
1 changed files with 2 additions and 0 deletions
  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)
 			}