Re:Your Docker image might be broken without you knowing it
by akerl_ on Wednesday February 19, 2014 @06:22AM
(#7263056)
Based on the points raised in your article, I ended up poking my own Docker images to get runit working on them. It looks like runit is A) pretty snazzy, and B) capable of being the init daemon. Am I missing some trade-off or issue there, that prevents it from being PID1 in your scenario?
Re:Your Docker image might be broken without you knowing it
by FooBarWidget on Wednesday February 19, 2014 @04:44PM
(#7266455)
Yes. Runit does not correctly reap adopted child processes, which is why we run runit under my_init. My_init (or an alternative that behaves like my_init) is absolutely necessary for correct operation.
Baseimage-docker is also in a "minimal viable product" phase. We're still trying to tweak things until they're right. For example my_init recently received some features which are important in certain use cases; features which would have been much lower to implement in C.
In the future we may optimize things by rewriting my_init in C. Right now it's laziness on our part.