# Graceful Shutdown (Stop vs Kill)

> What is the difference between docker stop and docker kill, and how do you make a containerized application shut down gracefully?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-container-killing-graceful
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What is the difference between docker stop and docker kill, and how do you make a containerized application shut down gracefully?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

SIGTERM, SIGKILL, Stop Timeout, PID 1, Exit Code 137

Previous: [Networking Drivers](https://www.internhack.in/learn/interview/docker-containers/docker-networking-drivers) · Next: [Dockerizing Node.js Apps](https://www.internhack.in/learn/interview/docker-containers/dockerize-node-app-best-practices) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [Container Security](https://www.internhack.in/learn/interview/docker-containers/docker-security-best-practices)
- [Troubleshooting & Logs](https://www.internhack.in/learn/interview/docker-containers/docker-logs-troubleshooting)
- [Layering & Copy-on-Write](https://www.internhack.in/learn/interview/docker-containers/docker-storage-layers-copy-on-write)
- [.dockerignore](https://www.internhack.in/learn/interview/docker-containers/docker-ignore-file)
- [Exec Form vs. Shell Form](https://www.internhack.in/learn/interview/docker-containers/docker-exec-vs-shell-form)
- [Bind Mount Permissions](https://www.internhack.in/learn/interview/docker-containers/docker-bind-mount-permissions)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
