What are Linux namespaces? Name the ones Docker uses.
BeginnerConceptContainers, VMs & Isolation Internals
Answer
Namespaces partition kernel resources so a process sees only its own view. Docker uses: pid (process IDs), net (interfaces, routes, iptables), mnt (mount table), uts (hostname), ipc (SysV IPC, POSIX queues), user (UID/GID mapping, optional) and cgroup (cgroup root view).
ls -l /proc/$(docker inspect -f '{{.State.Pid}}' web)/ns
More on Containers, VMs & Isolation Internals
What is a container, in one sentence?BeginnerHow do containers differ from virtual machines?BeginnerCan a Linux container run a Windows application, or the reverse?IntermediateWhat are cgroups and what do they do for containers?BeginnerWhat is PID 1 in a container and why does it matter?IntermediateHow do you see which namespaces a container uses and enter them from the host?Intermediate