зеркало из https://github.com/microsoft/docker.git
Don't call applyVolumesFrom on containers with volumes already configured (closes #2973)
Docker-DCO-1.1-Signed-off-by: Nolan Darilek <nolan@thewordnerd.info> (github: ndarilek)
This commit is contained in:
Родитель
ea0cce6270
Коммит
937ea1d380
|
@ -23,11 +23,11 @@ func prepareVolumesForContainer(container *Container) error {
|
|||
if container.Volumes == nil || len(container.Volumes) == 0 {
|
||||
container.Volumes = make(map[string]string)
|
||||
container.VolumesRW = make(map[string]bool)
|
||||
if err := applyVolumesFrom(container); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if err := applyVolumesFrom(container); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := createVolumes(container); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче