I had a strange issue recently when my Node.js app wasn’t shutting down gracefully inside a Docker container. Outside the container there were no issues so it had to be related.I wanted to know what was happening behind the scenes, so I went out to do some research. I found out there's a few gotchas when it comes to sending signals to a containerised app. Along the way I've learned, amongst other, the intricacies around PID 1 and what zombie orphaned processes are.I've summarised my findings in this article https://maximorlov.com/process-signals-inside-docker-containers/.I hope you find it insightful.
Submitted February 13, 2020 at 01:04PM by _maximization
No comments:
Post a Comment