Source: medium.com

Docker vs Virtual Machine

Category: Ubuntu, Docker

This article summarizes the differences between Docker and Virtual Machine. The difference will be explained based on how Docker works on an Operating system level and comparing it to how Virtual machine works. In other to understand how Docker works on an Operating system level let’s look at how an Operating system is made up. Operating system have 2 Layers; The Kernel is the part that communicates with the hardware components like CPU, Memory.

When you download a docker image it actually contains the applications layer of the Operating system and some other applications installed on top of it and it uses the kernel of the host because it does not have is own kernel.

Related Articles