Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
| ... | ... |
@@ -85,8 +85,8 @@ func (daemon *Daemon) registerMountPoints(container *container.Container, hostCo |
| 85 | 85 |
}() |
| 86 | 86 |
|
| 87 | 87 |
// 1. Read already configured mount points. |
| 88 |
- for name, point := range container.MountPoints {
|
|
| 89 |
- mountPoints[name] = point |
|
| 88 |
+ for destination, point := range container.MountPoints {
|
|
| 89 |
+ mountPoints[destination] = point |
|
| 90 | 90 |
} |
| 91 | 91 |
|
| 92 | 92 |
// 2. Read volumes from other containers. |