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.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.

What's the difference between `docker stop` and `docker kill`?

Next Step

Continue to Why might a container exit immediately after `docker run`?← Back to all Docker questions