Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove d.Client.KillContainer in Purge method #120

Merged
merged 1 commit into from
Apr 10, 2018
Merged

Conversation

calvn
Copy link
Contributor

@calvn calvn commented Apr 10, 2018

This PR removes the need to call d.Client.KillContainer() since we are passing in Force: true in RemoveContainer(), which should take care of killing the container before it's removed.

This avoids returning an error on Purge() when the container is somehow killed (e.g. exited due to errors):

Failed to cleanup local container: : API error (500): Cannot kill container 6729d9e651eec207ba57585a5e774407904596a43e2877201be5a200409f7b26: Container 6729d9e651eec207ba57585a5e774407904596a43e2877201be5a200409f7b26 is not running

@calvn calvn changed the title Remove d.Client.RemoveContainer in Purge method Remove d.Client.KillContainer in Purge method Apr 10, 2018
@aeneasr aeneasr merged commit c11e1bc into ory:v3 Apr 10, 2018
@aeneasr
Copy link
Member

aeneasr commented Apr 10, 2018

Thank you, that made a ton of sense.

xstevens pushed a commit to xstevens/dockertest that referenced this pull request Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants