isolation
Keeping programs apart so one cannot see or interfere with another.
In more detail
Containers isolate processes with kernel features: namespaces limit what a process can see and control groups limit what it can use. Virtual machines isolate more strongly, because each guest has its own kernel behind a hypervisor. Isolation is a spectrum, and each flag that shares something with the host, such as --pid=host, removes a piece of it.
Related terms
- namespace (Linux) — A Linux kernel feature that controls what a process can see, such as which other processes, network or host name.
- control group — A Linux kernel feature that limits how much memory, processor time and other resources a group of processes may use.
- virtual machine — A complete pretend computer, with its own operating system, running as software on a real computer.
- container escape — An attack where code inside a container breaks out and gains control of the host.
Taught in
- Why Containers: Bare Metal, Machines And Processes — Docker Architecture & Production Containers
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers
- Bridge Networks, DNS And Container Communication — Docker Architecture & Production Containers
- Integration Tests, Test Data And Compose Cleanup — Docker Architecture & Production Containers
- Child Processes: spawn, execFile, fork & IPC — Node.js Internals & Backend Services