Skip to content

Conversation

@gergo-nyiro-oi
Copy link

The cleanup during the exit from DockerContainer context could fail because if docker couldn't kill the container it won't be able to remove it either. Therefore we kill the container with force option if the kill failed.

The cleanup during the exit from `DockerContainer` context could fail
because if docker couldn't kill the container it won't be able to remove
it either. Therefore we kill the container with force option if the kill
failed.
Copy link
Collaborator

@wferi wferi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://docker-py.readthedocs.io/en/stable/containers.html kill() already defaults to SIGKILL, and remove(force=True) sends SIGKILL as well. How can this patch make a difference then?

@gergo-nyiro-oi
Copy link
Author

Double stubbing just to be sure :)

Joke aside, I have to recheck without force, but the logging may can help in the debugging in the future.

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.

2 participants