- Process IDs (PID)
- Network (interfaces, routing, firewall)
- Inter-process communication (IPC — shared memory, semaphores)
- Mounts (filesystem namespace)
- UTS (hostname / domainname)
- User (user/group IDs)


ps inside a container running NGINX:
ps output above is relative to the container’s PID namespace. On the Docker host the same kernel processes exist but with different global PIDs:
- The kernel is managing one set of processes, but PID namespaces provide different PID views.
- Inside the container the NGINX master appears as PID 1; on the host it’s a higher-numbered PID.
- Tools like
/procare namespaced too — the container sees a/procthat reflects its PID namespace.
- From the host:
docker top <container-id>to see the host PIDs of container processes. - From inside the container:
psorcat /proc/1/statusto confirm PID 1 is the container’s main process. - To run without PID isolation (share host PID namespace):
docker run --pid=host ...(not recommended for untrusted workloads).
PID namespaces provide a separate view of process IDs. The kernel still enforces unique global PIDs, but it maps namespace-local PIDs to the corresponding global PIDs so that processes inside a container can appear to start at PID 1.
- Docker documentation — Container isolation
- Linux kernel namespaces overview
- Understanding PID namespaces and /proc