소스 검색

Rename the variable 'name' to 'destination'

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
Yanqiang Miao 9 년 전
부모
커밋
57cec5a777
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.
-	for name, point := range container.MountPoints {
-		mountPoints[name] = point
+	for destination, point := range container.MountPoints {
+		mountPoints[destination] = point
 	}
 
 	// 2. Read volumes from other containers.