How does stop differ from kill?
docker stop web
- It asks the process first
- It removes the image
- It detaches the terminal
- 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 ▸