mirror of https://github.com/docker/cli.git
docker stack config
environment variable merge is not as expected Signed-off-by: Stanislav Filin <stasfilin@hotmail.com>
This commit is contained in:
parent
dbd53f0419
commit
117c84ee2d
|
@ -126,7 +126,9 @@ func toServiceVolumeConfigsMap(s interface{}) (map[interface{}]interface{}, erro
|
|||
}
|
||||
m := map[interface{}]interface{}{}
|
||||
for _, v := range volumes {
|
||||
m[v.Target] = v
|
||||
if _, exists := m[v.Target]; !exists {
|
||||
m[v.Target] = v
|
||||
}
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue