Skip to content
Opsfolk

Under the hood, topic 5 of 41

Namespaces

A Linux namespace gives a process its own view of one part of the system. The PID namespace gives a container its own process list, where its program is process 1; the network namespace its own interfaces and ports; the mount namespace its own file system; and the user namespace its own users.

Docker creates a set of namespaces for each container. Knowing this explains why ps inside a container shows so little, and why two containers can both listen on port 80.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress