init process

The first process started on a system or in a container, with process ID 1 and special duties.

In more detail

On a normal Linux machine PID 1 is an init system such as systemd, which starts services and adopts orphaned processes, collecting their exit status. In a container, PID 1 is simply the main process, and the kernel treats it specially: it ignores termination signals it has no handler for, and it must clean up exited children. That is why a program that shuts down fine on a laptop can ignore a stop request in a container, and why tiny init programs exist to run in front of it.

Related terms

Taught in

References

Certification courses