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:
Brian Goff
2015-06-04 15:39:31 -07:00
+1 -1
View File
@@ -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)