Docker Container Internals

Namespace PID 1 and child reaping

Namespace init has special signal behavior and adoption duties. A helper does not replace application shutdown logic. An init helper can reap adopted children but cannot replace application shutdown logic.

Formal Syntax & Structure

docker syntaxdocker
Signal handling / wait / init helper

Working Example

Example Snippetdocker
Docker run option --init (staged).
Docker Reference