advancedTop 100 Interview Questions
What's the difference between `docker stop` and `docker kill`?
`docker stop` sends SIGTERM and waits a grace period (default 10s) for graceful shutdown before sending SIGKILL if the process hasn't exited. `docker kill` sends SIGKILL (or another specified signal) immediately, with no grace period.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response