What is the difference between docker stop and docker kill?

Docker Fundamentals Medium

Docker Fundamentals — Medium

What is the difference between docker stop and docker kill?

Key points

  • docker stop sends SIGTERM before SIGKILL
  • docker kill terminates the container immediately
  • docker stop allows for a graceful shutdown process
  • docker kill skips the graceful shutdown process
  • The difference lies in the shutdown process timing

Ready to go further?

Related questions