What is the difference between Docker and a virtual machine?
The difference between Docker and the virtual machine is as follows-
Virtual machines | Docker containers |
---|---|
It essentially requires more resources. | It requires fewer resources. |
Process isolation is performed at the hardware level. | The process isolation is performed at the operating system level. |
It has a separate operating system for every virtual machine. | The resources of the operating system are shared within the Docker container. |
Virtual machines can be easily customized. | The setup of a custom container is easy. |
Creating a virtual machine requires time | Creating the Docker is faster in comparison to virtual machines. |
Booting is not quick. | Booting is also performed quickly. |
BY Best Interview Question ON 06 Oct 2019