The --init flag of docker run causes the tini init system to be used as the ENTRYPOINT. As a consequence, the application running in the container will be a child process of the init system so that it can take care of signal handling, zombie reaping etc.
docker-compose also has an init: true service setting.
As tini works transparently, Dockerfiles don't need to be modified in any way (that's what that tini docs say).
So my questions are:
- Are there any downsides to using
--init? - Under which circumstances would it be better to avoid using
--init? - In case there are no serious downsides: Why is
--initnot the default setting?