Explain it in 60 seconds
PID 1 and graceful shutdown in containers
Cloud & DevOps · Docker · Intermediate
Why does it matter which process is PID 1 in a container?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- docker stop sends SIGTERM, then SIGKILL after timeout.
- PID 1 must handle signals.
- Shell form wraps app in sh (signals not forwarded).
- Use exec form or exec in scripts.
- tini/--init reaps zombies.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.