Signed-off-by: Alexander Morozov <lk4d4@docker.com>
| ... | ... |
@@ -16,11 +16,9 @@ import ( |
| 16 | 16 |
|
| 17 | 17 |
// createContainerPlatformSpecificSettings performs platform specific container create functionality |
| 18 | 18 |
func createContainerPlatformSpecificSettings(container *Container, config *runconfig.Config, hostConfig *runconfig.HostConfig, img *image.Image) error {
|
| 19 |
- var name, destination string |
|
| 20 |
- |
|
| 21 | 19 |
for spec := range config.Volumes {
|
| 22 |
- name = stringid.GenerateNonCryptoID() |
|
| 23 |
- destination = filepath.Clean(spec) |
|
| 20 |
+ name := stringid.GenerateNonCryptoID() |
|
| 21 |
+ destination := filepath.Clean(spec) |
|
| 24 | 22 |
|
| 25 | 23 |
// Skip volumes for which we already have something mounted on that |
| 26 | 24 |
// destination because of a --volume-from. |