Docker and the PID 1 zombie reaping problem (2015)
blog.phusion.nl
blog.phusion.nl
The current situation is suboptimal, I claim. But it's true that with no convenient standard abstraction for transferring data, we don't really have any other conceivable option.
Released as statically linked binary, it is simple ADD + chmod +x to get running simple init without any dependencies.
^1: https://engineeringblog.yelp.com/2016/01/dumb-init-an-init-f...
> lxc-execute command will run the specified command into the container via an intermediate process, lxc-init. This lxc-init after launching the specified command, will wait for its end and all other reparented processes. (to support daemons in the container). In other words, in the container, lxc-init has the pid 1 and the first process of the application has the pid 2.
Or Docker is creating the problem by doing it wrong.