2 ms·
One thing I've learned is that rather than use a docker-entrypoint.sh, most Linux software can be ran just using the `--user 1000:1000` or whatever UID/GID you
by chromedev 6y ago
One thing I've learned is that rather than use a docker-entrypoint.sh, most Linux software can be ran just using the `--user 1000:1000` or whatever UID/GID you want to use, as long as you map a volume that can use those permissions. It is a lot cleaner this way.
- westurner 6y ago> Why Tini? > Using Tini has several benefits: > - It protects you from software that accidentally creates zombie processes, which can (over time!) starve your entire system for PIDs (and make it unusable). > - It ensures that the default signal handlers work for the software you run in your Docker image. For example, with Tini, SIGTERM properly terminates your process even if you didn't explicitly install a signal handler for it. > - It does so completely transparently! Docker images that work without Tini will work with Tini without any changes. [...] > NOTE: If you are using Docker 1.13 or greater, Tini is included in Docker itself. This includes all versions of Docker CE. To enable Tini, just pass the `--init` flag to docker run. https://github.com/krallin/tini#why-tini https://github.com/krallin/tini#why-tini
- chromedev 6y agoI didn't know it was included by default. I'll check it out, thanks!