butterfly
butterfly copied to clipboard
PID 0 zombie reap
Given it spawns processes, I wonder if it may not generate zombies and given it's running as PID 0 it's likely an issue.
Suggested solution:
- Install https://github.com/Yelp/dumb-init in the container (really small)
- Change entrypoint to something like
ENTRYPOINT ["dumb-init", "run.sh"]
May be worth checking if its indeed an issue (in many cases, an init may not be needed, but I haven't checked the code).
Note that docker 1.13 also allows you to set an init/reaper without modifying images; https://github.com/docker/docker/pull/26061
Seems like Docker is finally moving to fix this, but probably a long time until most docker Daemons have that enabled by default.