diff --git a/daemon/volumes.go b/daemon/volumes.go index 2346eb715f..0d7e5da8c3 100644 --- a/daemon/volumes.go +++ b/daemon/volumes.go @@ -268,7 +268,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)