Quiz Entry - updated: 2026.12.01
In which respects is a container isolated from other containers? Name at least three.
Filesystem, processes, network, hostname and IPC, users, and resource usage. Each comes from a Linux kernel feature (namespaces and cgroups).
| Isolated aspect | What it means | Kernel feature |
|---|---|---|
| Filesystem | Each container sees its own root filesystem (image layers plus its own writable layer). A file created in one container does not appear in another. | Mount namespace |
| Processes | A container only sees its own processes; its main process is PID 1. | PID namespace |
| Network | Own interfaces, IP address, routing table and ports; two containers can both listen on port 80. | Network namespace |
| Hostname and IPC | Own hostname; shared memory and message queues are private. | UTS and IPC namespaces |
| Users | Optionally, root inside the container maps to an unprivileged user on the host. | User namespace |
| Resources | CPU, memory and I/O can be capped so one container cannot starve the others. | cgroups |
The lab shows the filesystem point directly: two containers from the same image each run a small web app, a file created through one container's /create URL is not readable through the other's /read.
Isolation is only as good as its configuration. Excessive privileges, unneeded open ports, missing resource limits or an outdated engine can weaken it and even endanger the host. And since all containers share one kernel, a kernel exploit breaks every boundary at once, which is the main difference from a VM.
Go deeper:
Docker Docs: Docker Engine security — namespaces, cgroups and the daemon's attack surface.
Wikipedia: Linux namespaces — each namespace type and what it isolates.
Wikipedia: cgroups — how the kernel limits and accounts for resources.