Namespaces: what a container can see
Select an icon to see what it is.
Step 2 of 6
Each namespace is a file in /proc
Every process has a link per namespace in /proc/<pid>/ns. Two processes are in the same namespace when the inode numbers match. The container's process and a host process show different numbers for the namespaces runc created.
$ sudo ls -l /proc/4321/nsls -l /proc/<pid>/ns (inode numbers are placeholders)
host PID 1: pid -> 'pid:[A]' net -> 'net:[B]' mnt -> 'mnt:[C]'container 4321: pid -> 'pid:[D]' net -> 'net:[E]' mnt -> 'mnt:[F]'A, B, C differ from D, E, F