• Docker
  • What is PID1 concept and its associated with Container?

The PID 1 concept refers to the first process that runs inside a system or container. In Linux, the first process is always assigned PID 1 (Process ID 1).

In the context of containers, PID 1 is the process that gets started when the container is launched. It's the root process for that container, and it has a special role. If PID 1 crashes, the whole container stops, because there’s no process left to manage things.