Home  >  Article  >  The difference between docker and virtual machine

The difference between docker and virtual machine

(*-*)浩
(*-*)浩Original
2019-06-21 15:17:464501browse

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.

The difference between docker and virtual machine

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn