Posts Docker vs Virtual Machine
Post
Cancel

Docker vs Virtual Machine

A virtual machine and Docker container differences.

1. Docker vs VM

Virtual MachineDocker Container
Hardware-level process isolationOS level process isolation
Each VM has a separate OSEach container can share OS
Boots in minutesBoots in seconds
VMs are of few GBsContainers are lightweight (KBs/MBs)
Ready-made VMs are difficult to findPre-built docker containers are easily available
VMs can move to new host easilyContainers are destroyed and re-created rather than moving
Creating VM takes a relatively longer timeContainers can be created in seconds
More resource usageLess resource usage

2. Reference

https://geekflare.com/docker-vs-virtual-machine/


“Learn as if you will live forever, live like you will die tomorrow.” — Mahatma Gandhi

This post is licensed under CC BY 4.0 by the author.