Merge pull request #9641 from glours/fix-volumes_from

keep the container reference when volumes_from target a container and not a service
This commit is contained in:
Guillaume Lours 2022-07-15 18:29:14 +02:00 committed by GitHub
commit d85751f6d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ func getVolumesFrom(project *types.Project, volumesFrom []string) ([]string, []s
continue
}
if spec[0] == "container" {
volumes = append(volumes, strings.Join(spec[1:], ":"))
volumes = append(volumes, vol)
continue
}
serviceName := spec[0]