Skip to content

What is a container, really?

Select an icon to see what it is.

Step 3 of 6

The kernel makes new namespaces

runc asks the kernel for new pid, mount, uts, ipc and network namespaces, then starts the container's process inside them. Each namespace hides part of the host from that process. This is the isolation.

Namespaces for the container process

pid - own process tree, nginx is PID 1
mnt - own mount table and root filesystem
uts - own hostname
ipc - own shared memory and queues
net - own interfaces, routes and iptables