From 1f3e62e7c9882b452502f35a4e84240e79cc58a5 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Sat, 24 Dec 2022 08:15:33 +0100 Subject: [PATCH] only consider service name in volumes_from spec Signed-off-by: Nicolas De Loof --- types/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/types.go b/types/types.go index 156cacd0..f1dce04a 100644 --- a/types/types.go +++ b/types/types.go @@ -279,7 +279,8 @@ func (s ServiceConfig) GetDependencies() []string { } for _, vol := range s.VolumesFrom { if !strings.HasPrefix(s.Pid, ContainerPrefix) { - dependencies.append(vol) + spec := strings.Split(vol, ":") + dependencies.append(spec[0]) } }