Skip to content

Commit

Permalink
checkExpectedVolumes must ignore anonymous volumes
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof authored and glours committed Jan 6, 2025
1 parent 571a1af commit be09b2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/compose/convergence.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ func checkExpectedVolumes(expected types.ServiceConfig, actual moby.Container, v
if vol.Type != string(mmount.TypeVolume) {
continue
}
if vol.Source == "" {
continue
}
id := volumes[vol.Source]
found := false
for _, mount := range actual.Mounts {
Expand Down

0 comments on commit be09b2e

Please sign in to comment.