Skip to content

Commit be09b2e

Browse files
ndeloofglours
authored andcommitted
checkExpectedVolumes must ignore anonymous volumes
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 571a1af commit be09b2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/compose/convergence.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ func checkExpectedVolumes(expected types.ServiceConfig, actual moby.Container, v
387387
if vol.Type != string(mmount.TypeVolume) {
388388
continue
389389
}
390+
if vol.Source == "" {
391+
continue
392+
}
390393
id := volumes[vol.Source]
391394
found := false
392395
for _, mount := range actual.Mounts {

0 commit comments

Comments
 (0)