Basic Information
| Field | Details |
|---|---|
| English name | Container vs Virtual Machine |
| Full name | Container and Virtual Machine |
| Chinese description | 容器与虚拟机 |
| Japanese description | コンテナと仮想マシン |
| Exam frequency | ⭐⭐⭐⭐ |
| Often confused with | Container Image / ECS / EKS / Fargate |
In one sentence
Containers share a host kernel and package applications, while virtual machines include a full guest operating system.
Key points
- Containers start quickly, are lightweight, and improve application portability.
- Virtual machines provide stronger OS-level isolation and can run different guest operating systems.
- Containers still need compute capacity and an orchestration or runtime layer.
Exam takeaway
Choose based on isolation, operating-system control, startup speed, portability, and operational model.