Skip to main content

What is the difference between docker stop and docker kill?

Entry Docker
Quick Answer docker stop sends SIGTERM, giving the container's process time to shut down gracefully รขโ‚ฌโ€ it can save state, close connections, finish in-flight work. After a timeout (default 10s), it sends SIGKILL. docker kill immediately sends SIGKILL รขโ‚ฌโ€ instant termination with no cleanup. Always prefer stop for production workloads.

Answer

docker stop sends SIGTERM for graceful shutdown, while docker kill sends SIGKILL for immediate forced termination.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice