PID 1 app doesn't reload on SIGHUP or ignores Ctrl+C in `docker run -it`.
AdvancedTroubleshootingContainers that exit, crash or misbehave
Answer
Likely causes → PID 1 has no default signal handlers; a signal without a handler is ignored.
Diagnose → docker exec c cat /proc/1/status | grep -E 'SigCgt|SigIgn'
Fix → Run --init, or have the app install handlers (Node: process.on('SIGTERM')).
Prevent → Test docker stop time in CI.
More on Containers that exit, crash or misbehave
Container exits immediately with code 0 right after `docker run -d`.Beginner`Exited (137)` with no OOM flag.Intermediate`Exited (139)` segmentation fault.Advanced`Exited (126)` / `Exited (127)`.Beginner`exec /entrypoint.sh: exec format error`Intermediate`docker run` says `WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)` and the app is very slow.Beginner