O'Reilly logo

DevOps for Web Development by Mitesh Soni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the difference between virtual machines and containers

In recent times, cloud computing has become part of almost all technical discussions. Virtual machines have served a lot of people in utilizing resources efficiently. However, Docker containers have given them competition and, in fact, containers are more effective.

Let's find out the basic differences between both and find out the reason behind the popularity of containers:

Virtual machines

Containers

In the virtual machine, we need to install an operating system with the appropriate device drivers; hence, the footprint or size of a virtual machine is huge. A normal VM with Tomcat and Java installed may take up to 10 GB of drive space:

A container shares the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required