tini

A tiny init program for containers that runs as process ID 1, forwards signals to your program and reaps zombie processes.

In more detail

docker run --init adds it automatically. With it, a Node.js process receives SIGTERM normally even without its own init handling.

Related terms

Taught in

References