Skip to content

Commit f30f9d9

Browse files
committed
keep the container reference when volumes_from target a container and not a service
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 5bc4016 commit f30f9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ func getVolumesFrom(project *types.Project, volumesFrom []string) ([]string, []s
680680
continue
681681
}
682682
if spec[0] == "container" {
683-
volumes = append(volumes, strings.Join(spec[1:], ":"))
683+
volumes = append(volumes, vol)
684684
continue
685685
}
686686
serviceName := spec[0]

0 commit comments

Comments
 (0)