3 ms·
Is tini still considered best practice? I remember reading that it was included and now you can just docker run --init (init: true in compose)
by kortex 6y ago
Is tini still considered best practice? I remember reading that it was included and now you can just docker run --init (init: true in compose)
- jitl 6y agoFrom TFA: > 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.
- kortex 6y agoThis is what I get for skimming, thanks for pointing it out. 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.