Namespaces (Linux)
The Linux kernel's mechanism for giving a group of processes their own isolated view of the system — their own process IDs, their own network, their own filesystem, and so on. This is what makes a container "think" it's alone on the machine. The other foundation (with cgroups) behind containers.
Mechanic: the kernel supports several types of namespaces, each isolating one aspect: PID (own process IDs, can't see the host's processes), NET (own network stack, own interfaces/IP), MNT (own filesystem/mounts), UTS (own hostname), IPC (own shared memory/queues), and USER (own UID mapping — the basis for rootless). A container is simply a process running in a set of its own namespaces + limited by cgroups. Win: lightweight isolation without a whole virtual machine (a shared kernel, fast start). Limitation: since the kernel is shared, the isolation is weaker than a VM's → which is why gVisor/Kata exist for stronger isolation when running untrusted code. The combination of namespaces (what you see) + cgroups (how much you get) IS a container. Related to cgroups v2 and rootless container.