소스 검색

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

Fix relabeling local volume source dir
Sebastiaan van Stijn 7 년 전
부모
커밋
91ca2a15f7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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)
 			}