Skip to content

Namespaces: what a container can see

Select an icon to see what it is.

Step 1 of 6

runc asks for new namespaces

runc reads the container's OCI config, which lists the namespaces to create. It asks the kernel for new pid, mount, uts, ipc and network namespaces. Then the container's process starts inside them.

$ docker run -d --name web --network shop-net nginx
PrevNext

Namespace flags

CLONE_NEWPID pid namespace
CLONE_NEWNS mount namespace
CLONE_NEWUTS hostname
CLONE_NEWIPC shared memory and queues
CLONE_NEWNET network stack