krallin / tini

A tiny but valid `init` for containers
MIT License
9.82k stars 507 forks source link

Remap exit codes based on environment variable #189

Open tavin opened 2 years ago

tavin commented 2 years ago

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, it'd be nice if it were possible to pass TINI_EXIT_REMAP=143 or something like that. It could be a list separated by spaces.