by jitl · 5y ago · 0 comments
> Unfortunately, although Docker did add it natively, it is optional (you have to pass --init to the docker run command). Additionally, because it is a feature of the runtime and e.g. Kubernetes will not use the Docker runtime but rather a different container runtime it is not always the default so it is best if your image provides a valid entrypoint like tini instead.
I have noticed that after moving away from tini, some of my containers take a lot longer to shut down, despite the init flag. I think this might be related.