-
Hello, Because when I do a I found a way to stop this from happening to me by setting a very long stop_grace_period on this particular docker (https://docs.docker.com/compose/compose-file/#stop_grace_period), but is there any way to configure docker globally so that it never sends this SIGKILL? Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Also worth noting |
Beta Was this translation helpful? Give feedback.
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 toSIGKILL
.You could use
docker kill -s SIGTERM && docker wait
as well.