Merge pull request #13684 from lizf-os/cleanup-verify-volumes-info
Cleanup Daemon.verifyVolumesInfo() a bit Upstream-commit: a2602c617d0afcf829983c46abd9cc95f2003078 Component: engine
This commit is contained in:
@@ -269,7 +269,7 @@ func (daemon *Daemon) verifyVolumesInfo(container *Container) error {
|
||||
|
||||
for destination, hostPath := range vols.Volumes {
|
||||
vfsPath := filepath.Join(daemon.root, "vfs", "dir")
|
||||
rw := vols.VolumesRW != nil && vols.VolumesRW[destination]
|
||||
rw := vols.VolumesRW[destination]
|
||||
|
||||
if strings.HasPrefix(hostPath, vfsPath) {
|
||||
id := filepath.Base(hostPath)
|
||||
|
||||
Reference in New Issue
Block a user