Skip to content

What it is

Init is the bootstrap process that brings a system from an empty starting point to a state where it can accept work, by loading configuration and launching dependencies.

Init has several faces depending on context. In Unix systems, init is PID 1, the first user-space process started by the kernel, responsible for launching all other processes. In systemd, init is replaced by systemd as PID 1, but the role is the same: bring the system up and keep it running. In containers, docker init or tini acts as PID 1 inside the container, reaping zombie processes and forwarding signals. In version control, git init creates the .git directory and initializes the repository skeleton. In a service context, the "init" phase is whatever the application does before it can accept traffic: load config, open database connections, warm caches, register with the service discovery.

The common thread across all of them is that init turns a blank runtime into a ready runtime. Without init, a kernel alone cannot run a userspace, a container cannot receive traffic, a repository cannot accept a commit. Init is the boundary between "empty" and "operational".