Foundations, topic 3 of 41
Containers and virtual machines
A virtual machine emulates hardware and runs a whole operating system with its own kernel. A container shares the host's kernel and isolates only the process, so it starts in a fraction of a second and uses far less memory.
The trade is isolation: a VM's boundary is stronger, and a Linux container needs a Linux kernel. That is why Docker Desktop on macOS and Windows runs a small Linux VM, and why many platforms put containers inside VMs. Bare metal, VMs and containers are layers you combine, not rivals.
On Opsfolk
Nothing of ours for this topic yet: an article is on its way.
Elsewhere
- Containers versus virtual machinesOfficial
- Docker overviewOfficial