3 ms·
Maybe you wouldn't want systemd, but a basic init system as PID 1 is wise for a Docker container. See https://github.com/Yelp/dumb-init https://github.com/Yelp/
by tomjakubowski 8y ago
Maybe you wouldn't want systemd, but a basic init system as PID 1 is wise for a Docker container. See https://github.com/Yelp/dumb-init https://github.com/Yelp/dumb-init
- mirimir 8y agoWow. Thanks. I've been wondering about all those zombies.
- cyphar 8y agoI would suggest https://github.com/openSUSE/catatonit https://github.com/openSUSE/catatonit (self-plug -- I wrote it). dumb-init (and tini which is what "docker run --init" uses) don't handle zombies in the most ideal fashion possible, catatonit does. And it does so in less code.
- mirimir 8y agoThanks. I use "docker run --init", and there are indeed zombies :( I play a lot with shell scripts, and ps gets littered with grep and awk.