In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What I want to share with you in this article is about the difference between docker container and virtual machine. I think it is very practical, so I share it with you. I hope you can get something after reading this article.
What is the difference between a docker container and a virtual machine? Docker containers and virtual machines are often mentioned together. Due to the lack of practical experience, many people don't know the difference between the two. Here's a brief introduction.
1. The traditional virtual machine architecture is: physical machine-> host operating system-> Hypervisor support-> virtual machine operating system-> application.
Virtual machine is based on Hypervisor software to virtualize a set of hardware devices needed for operating system on the host, and then install operating system Guest OS on these virtual hardware, then different applications can run on different Guest OS, and the applications are independent of each other and resources are isolated.
However, due to the need for Hypervisor to create virtual machines, and each virtual machine needs to run a complete set of operating system Guest OS, so this approach will bring a lot of additional resources overhead.
2. The docker architecture is: physical machine-> host operating system-> docker engine-> application (this will contain files of the mirrored operating system, but these are only dependent on the environment, the kernel will not be started at all, and the / boot directory can be deleted directly)
Compared with the traditional virtual machine architecture, docker appears to be more lightweight. There is no Hypervisor layer in the Docker container, although it needs to run Docker Engine in the host, but its principle is completely different from Hypervisor, it does not virtualize the hardware device, let alone deploy a full set of operating system Guest OS.
The Docker container does not have such a complex implementation principle, it is actually an ordinary process, but it is a kind of ordinary process that has been specially handled.
These are the differences between docker containers and virtual machines. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.