Browse Source

Merge pull request #41 from kolyshkin/18.09-backport-pr37739

[18.09] backport "fix relabeling local volume source dir"
Madhu Venugopal 7 years ago
parent
commit
648704522b
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)
 			}