mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user