Sfoglia il codice sorgente

Merge pull request #26656 from miaoyq/rename-name-to-destination

Rename the variable 'name' to 'destination'
Vincent Demeester 8 anni fa
parent
commit
e54171378c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      daemon/volumes.go

+ 2 - 2
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.