瀏覽代碼

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

Rename the variable 'name' to 'destination'
Vincent Demeester 8 年之前
父節點
當前提交
e54171378c
共有 1 個文件被更改,包括 2 次插入2 次删除
  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.
 	// 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.
 	// 2. Read volumes from other containers.