Namespaces give a process its own isolated view of system resources: PID (process IDs), network (interfaces and ports), mount (file systems), UTS (hostname), IPC and user (ID mapping).
Control groups (cgroups) limit and account for resource usage per group of processes: CPU, memory, I/O and process counts; exceeding the memory limit triggers an OOM kill.
A union or overlay file system provides layered images; together these Linux kernel features, not a separate OS, are what a container is.
Loading…