Open dlespiau opened 7 years ago
See also https://www.fpcomplete.com/blog/2016/10/docker-demons-pid1-orphans-zombies-signals and https://github.com/fpco/pid1#readme
I think running a supervisor as pid 1 is the likely best solution. I wonder if we do this already at weave?
Flux uses tini
https://github.com/search?q=org%3Aweaveworks+tini&type=Code
Looking at our dev instance, it seems like there are thousands of zombie
[git-remote-http]
processes in the container.It's somewhat likely to be the "usual" problem of PID 1 in the container (
compare-revisions
itself) not reaping orphaned containers:git
git
execs some helper processes likegit-remote-http
git
exits withgit-remote-http
still around, and that process gets re-parented to PID 1git-remote-http
when it finishesA couple of things can be done: