Skip to content

Commit

Permalink
Merge pull request #10136 from gtardif/fix_race_delete_orphan_containers
Browse files Browse the repository at this point in the history
Ignore not only auto-removed containers but also "removal in progress" for orphan containers
  • Loading branch information
glours committed Jan 3, 2023
2 parents a224780 + 37d15d7 commit dcbd68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compose/down.go
Expand Up @@ -274,7 +274,7 @@ func (s *composeService) removeContainers(ctx context.Context, w progress.Writer
Force: true,
RemoveVolumes: volumes,
})
if err != nil && !errdefs.IsNotFound(err) {
if err != nil && !errdefs.IsNotFound(err) && !errdefs.IsConflict(err) {
w.Event(progress.ErrorMessageEvent(eventName, "Error while Removing"))
return err
}
Expand Down

0 comments on commit dcbd68a

Please sign in to comment.