Merge pull request #1103 from gtardif/flaky_down

When running compose down, remove containers with Force=true
This commit is contained in:
Nicolas De loof 2021-01-06 10:42:17 +01:00 committed by GitHub
commit ba3b057b8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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