diff --git a/components/engine/daemon/volumes.go b/components/engine/daemon/volumes.go index 7680e7005e..11a7d0a5c9 100644 --- a/components/engine/daemon/volumes.go +++ b/components/engine/daemon/volumes.go @@ -85,8 +85,8 @@ func (daemon *Daemon) registerMountPoints(container *container.Container, hostCo }() // 1. Read already configured mount points. - for name, point := range container.MountPoints { - mountPoints[name] = point + for destination, point := range container.MountPoints { + mountPoints[destination] = point } // 2. Read volumes from other containers.