Docker and CI/CD · Junior · Question 28 of 75
What does docker stop do?
- ✓Correct answer: Sends SIGTERM, then SIGKILL after a timeout (10 s by default)
- 2Immediately kills the main process with SIGKILL, with no delay
- 3Pauses the container so that it can be resumed again later
Explanation
The app gets a chance to finish requests and close connections. If PID 1 ignores SIGTERM, every stop takes the full timeout and ends in a hard kill.