butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

PID 0 zombie reap

Open wernight opened this issue 7 years ago • 2 comments

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:

  1. Install https://github.com/Yelp/dumb-init in the container (really small)
  2. Change entrypoint to something like ENTRYPOINT ["dumb-init", "run.sh"]

wernight avatar Oct 26 '16 08:10 wernight

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

thaJeztah avatar Oct 30 '16 08:10 thaJeztah

Seems like Docker is finally moving to fix this, but probably a long time until most docker Daemons have that enabled by default.

wernight avatar Oct 31 '16 12:10 wernight