tini
tini copied to clipboard
A tiny but valid `init` for containers
## TL;DR When dealing with multi sub processes, tini is likely to return without waiting for all children to exit, and that drives kernel send SIGKILL to the remaining processes...
* add `-R {A|F}` option to emulate `docker --restart always/on-failure` behavior **REASON FOR CHANGE:** The tini-based container could be run via non-docker container runtime (e.g. containerd, cri-o or raw runC),...
Updated ubuntu base image used to build from 16.04 to 22.04 as 16.04 is out of (unpaid) support
The final thing a true init needs to do--or rather not do--that Tini does not support is not exit like a normal process. When running as true init, Tini causes...
Some applications need to be restarted, for example, to reload the configuration. For various reasons they do not/cannot implement a signal-based graceful reload of configuration. In containerized environments, containers restart...
Added -r option that triggers child restart, and -t option that signals the child process to terminate.
- add --rm to clean up test container - add docker run example to easily test passing -g option
I've recently had to deal with a hardcoded tini command line in a 3rd party docker entrypoint. Instead of having to override the entrypoint to wedge `-e 143` in there,...
static-tini installation fails with "No valid ELF RPATH or RUNPATH entry exists in the file" message
Here's an excerpt of the build log, using GNU Guix: ``` [...] [100%] Built target tini make[1]: Leaving directory '/tmp/guix-build-tini-0.19.0.drv-0/build' /gnu/store/qixwn3dw6glj848hrr3h8fxm6s7wzxm3-cmake-minimal-3.16.5/bin/cmake -E cmake_progress_start /tmp/guix-build-tini-0.19.0.drv-0/build/CMakeFiles 0 make -f CMakeFiles/Makefile2 preinstall make[1]:...
Would it be possible to add a simplified SysV style init function? You could specify an environment variable like TINI_INIT_RC=3 and it would load any scripts in alphabetical order from...