mirror of
https://github.com/docker/compose.git
synced 2025-07-24 22:24:41 +02:00
keep the container reference when volumes_from target a container and not a service
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
5bc4016e70
commit
f30f9d9692
@ -680,7 +680,7 @@ func getVolumesFrom(project *types.Project, volumesFrom []string) ([]string, []s
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if spec[0] == "container" {
|
if spec[0] == "container" {
|
||||||
volumes = append(volumes, strings.Join(spec[1:], ":"))
|
volumes = append(volumes, vol)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
serviceName := spec[0]
|
serviceName := spec[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user