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

Fix relabeling local volume source dir
This commit is contained in:
Sebastiaan van Stijn 2018-09-01 01:50:08 +02:00 committed by GitHub
commit 91ca2a15f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}