From f30f9d9692789c659569b829a236271e69b60de4 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Tue, 12 Jul 2022 13:17:46 +0200 Subject: [PATCH] keep the container reference when volumes_from target a container and not a service Signed-off-by: Guillaume Lours --- pkg/compose/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/create.go b/pkg/compose/create.go index 34e728eb4..4edbbea43 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -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]