Merge pull request #37739 from kolyshkin/local-volume-mount-selinux
Fix relabeling local volume source dir
This commit is contained in:
commit
91ca2a15f7
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue