Skip to content

Commit b56ae2b

Browse files
authored
Merge pull request #334 from ndeloof/volumes_from
only consider service name in volumes_from spec
2 parents 7d49c99 + 1f3e62e commit b56ae2b

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)