Virtual machines versus containers

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 ...

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.