Merge pull request #4264 from ndarilek/2973-skip-volumes-from
Don't call applyVolumesFrom on containers with volumes already configure... Upstream-commit: 1ad14effb507589b84e5f93e7682c8e45ec10c28 Component: engine
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user