Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #41 from kolyshkin/18.09-backport-pr37739
Browse files Browse the repository at this point in the history
[18.09] backport "fix relabeling local volume source dir"
Upstream-commit: 648704522bdeccff09816055db754478e7b97c93
Component: engine
  • Loading branch information
mavenugo authored Sep 1, 2018
2 parents 46e2c8c + 7a491b2 commit 2dd6187
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/engine/daemon/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2dd6187

Please sign in to comment.