Let's see the following differences between virtual machines and containers:
Virtual machines |
Containers |
Virtual machines include the applications, the required dependencies, and a full guest operating system |
Containers include the applications and the required dependencies, and share operating systems and underlying infrastructure |
Each virtual machine has its own guest operating system; because of this, it requires more resources |
Because containers share resources, they require fewer resource, the minimal kernel of the operating system present for each container |
The hypervisor manages VMs, environments |
The container engine manages containers |
You have to add specific resources ... |