docker kill
Immediately sends a signal, SIGKILL by default, to the main process of a running container.
In more detail
Unlike docker stop there is no grace period, so the application cannot finish requests or save state. Use it only when stop does not work. --signal lets you send another signal instead.
Related terms
- SIGKILL — The signal that ends a process immediately; it cannot be caught or ignored.
- docker stop — Asks a running container to shut down cleanly, then forces it if it does not.
- signal — A short notification the kernel delivers to a process, such as please stop or stop now.
Taught in
- Run, Stop, Restart And Remove A Container — Docker Architecture & Production Containers
- Diagnose Crashes, Resource Limits And Unhealthy Containers — Docker Architecture & Production Containers