[go: up one dir, main page]

Skip to content

Why docker sends SIGKILL after 10 seconds ? #45101

Answered by cpuguy83
Fomys asked this question in Q&A
Discussion options

You must be logged in to vote

docker stop stops the container. It does so by passing along the configured termination signal and if it doesn't stop it forces it to.
In terms of "why"? I'm not sure I or likely anyone can give you the real answer here, it's been that way probably since it was first created... certainly since I started using docker pre-1.0 and works very well most of the time.
You can pass -t -1 to make it wait indefinitely or specific some other longer timeout.

Also worth noting docker kill just sends a signal to the container, and defaults to SIGKILL.
You could use docker kill -s SIGTERM && docker wait as well.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fomys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants