docker kill
CautionKill a container
docker kill <container>
Sends SIGKILL immediately (stop is graceful). Last resort for hung containers; prefer stop for data safety.
Examples
docker kill web01Force-kill a hung container
Syntax
docker kill [-s signal] <container>
Before you run it
No grace period — risk of data loss.
Related commands
- docker stopStop/start container
- docker restartRestart container
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store