Skip to content

Commit 1f3e62e

Browse files
committed
only consider service name in volumes_from spec
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 06f2fe3 commit 1f3e62e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ func (s ServiceConfig) GetDependencies() []string {
279279
}
280280
for _, vol := range s.VolumesFrom {
281281
if !strings.HasPrefix(s.Pid, ContainerPrefix) {
282-
dependencies.append(vol)
282+
spec := strings.Split(vol, ":")
283+
dependencies.append(spec[0])
283284
}
284285
}
285286

0 commit comments

Comments
 (0)