Skip to content

Signals and PID 1: why docker stop takes 10 seconds

Select an icon to see what it is.

Step 5 of 6

After 10 seconds: SIGKILL

If the container is still running when the timer ends, dockerd sends SIGKILL. The kernel always delivers it, and the process cannot catch it. The exit code is 137, which is 128 plus 9.

kill(<pid>, SIGKILL)

signal 9 cannot be caught or ignored