Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1103 from gtardif/flaky_down
Browse files Browse the repository at this point in the history
When running compose down, remove containers with Force=true
  • Loading branch information
ndeloof authored Jan 6, 2021
2 parents 849fbed + 0a53287 commit ba3b057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/compose/down.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (s *composeService) removeContainers(ctx context.Context, w progress.Writer
return err
}
w.Event(progress.RemovingEvent(eventName))
err = s.apiClient.ContainerRemove(ctx, toDelete.ID, moby.ContainerRemoveOptions{})
err = s.apiClient.ContainerRemove(ctx, toDelete.ID, moby.ContainerRemoveOptions{Force: true})
if err != nil {
w.Event(progress.ErrorMessageEvent(eventName, "Error while Removing"))
return err
Expand Down

0 comments on commit ba3b057

Please sign in to comment.