Skip to content

Commit

Permalink
fix error handling on stop container (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
avivpxi authored Dec 24, 2023
1 parent 9567373 commit b7d8f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (c *Component) Stop(ctx context.Context) error {
}

err = c.cli.ContainerRemove(ctx, cont.ID, types.ContainerRemoveOptions{Force: true})
if err != nil && !errdefs.IsNotFound(err) {
if err != nil && !errdefs.IsNotFound(err) && !errdefs.IsConflict(err) {
return err
}

Expand Down

0 comments on commit b7d8f86

Please sign in to comment.