$ ./guess_the_languageDevOps
DevOps · medium · #72

How does stop differ from kill?

docker stop web
  1. It asks the process first
  2. It removes the image
  3. It detaches the terminal
  4. It pauses the CPU only
stop sends SIGTERM then SIGKILL after a grace period, so the app can exit cleanly; kill is immediate.
Play DevOps ▸