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

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