diff --git a/components/engine/daemon/volumes.go b/components/engine/daemon/volumes.go index 2f50bdb492..6695a1fec4 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.