- pid: container sees its own PIDs; init of the namespace is PID 1 for that view.
- mount (mnt): separate mount table; pivot_root/chroot to set rootfs.
- net: virtual network stack; veth pairs, bridges, overlay networks.
- uts: hostname and NIS domain isolation.
- ipc: System V IPC and POSIX message queues isolation.
- user: map container root to unprivileged host UID/GID (UID 0 in container != host root).
- time: time namespaces for per-container clocks (newer kernels).
// Minimal containerization steps (conceptual)
function startContainer(){
// 1) create namespaces (clone/unshare: pid, mnt, net, uts, ipc, user)
// 2) set up rootfs mounts (bind mounts, pivot_root)
// 3) configure network (veth, bridge, IP, routes)
// 4) drop caps, set seccomp/LSM profiles
// 5) exec init process in the new namespace
}