Docker VS Virtual Machine — what you need to know!

H Dev
1 min readJul 4, 2023

--

This is a short read since it is super easy, but it is super important to understand this.

Docker and virtual machine are both virtualization techniques. But they are also quite different in how they achieve virtualization. Before we understand that, groundwork first.

The operating system is made up of two layers. OS kernel layer and OS application layer. The Kernel layer interacts with the underlying hardware components and abstracts their functionality to the above application layer. The applications that run, run on the kernel layer.

Docker works by virtualization of the application layer. The underlying kernel remains the same. That is the host kernel is used.

Less start up time, fast speed, and comparatively very less size.

l : Docker vs r : Virtual Machines

Whereas Virtual machine works by the virtualization of both the kernel and the application layer. Virtual machine consists of a operating system image which boots up on the virtual machine.

Resulting in greater boot up time, more size consumed.

simple enough right?

.

.

.

I’ll be writing more soon enough for you to follow through. Shower some claps for encouragement, thanks!

--

--

H Dev
H Dev

Written by H Dev

just another X-shaped personality, love to learn and tinker with new tech.

Responses (1)