Home >Common Problem >The difference between docker and virtual machine
Docker is written in Golang. Since its launch in 2013, it has attracted the attention of more and more developers. If you follow the latest technology developments, you must have heard of Docker.
#First of all, everyone needs to be clear that Docker containers are not virtual machines. (Recommended learning: Docker video tutorial)
Docker keeps promoting to everyone, ”Virtual machine needs It takes minutes to start, while a Docker container only takes 50 milliseconds."
The essential difference:
VM (VMware) creates a virtual layer and virtualization based on the host machine and the host machine operating system operating system and virtualized warehouse, and then install the application;
Container (Docker container) creates a Docker engine on the host machine and the host machine operating system, based on the engine Install the app again.
Then the question is, how to run the program without an operating system?
You can create an ubuntu image file in Docker, so that the ubuntu system can be integrated into Docker, and all running applications will be ubuntu applications.
The above is the detailed content of The difference between docker and virtual machine. For more information, please follow other related articles on the PHP Chinese website!