Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Is the docker container a virtual machine?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "whether the docker container is a virtual machine or not". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Not exactly, because there is a big difference between docker containers and virtual machines.

Docker is a virtual environment container in which you can package your executables, configuration files, and all other required files, publish and apply them to any platform.

Docker is similar to the concept of containers. For example, on a large ship, containers can arrange the goods neatly. And all kinds of goods are standardized by containers and will not affect each other. In that case, there is no need for ships specializing in fruit and medicines. As long as the goods are sealed in a container, they can all be carried away in a big ship.

The difference from traditional Virtualization

Traditional virtualization is based on the physical resources of server hardware, virtualizing multiple OS, and then building a relatively independent program running environment on the basis of OS; while Dokcer is virtual on the basis of OS, obviously Dokcer is much lighter, and its resource consumption and performance consumption have great advantages compared with traditional virtualization.

In fact, docker is very similar to virtual technology, but there are some differences. On the one hand, at the level of two technologies, the virtual machine is generally supported by the underlying hardware Hardware, and the upper layer is the virtual management system Hypervisor layer. Different VM services are opened in the upper layer. If these services need to be isolated, each VM needs to start the client operating system, which is very resource-consuming.

Docker is completely different. The underlying layer is supported by hardware and Host OS systems, such as Windows/MacOS/Linux. Bloated systems are thrown out in the middle and replaced by Docker daemons. Different containers are built in the upper layer, and different application images are packaged in different containers, and they are isolated from each other.

Docker has a small design, rapid deployment and migration, runs efficiently, and applications are independent of each other, so managers can see the contents of all containers. Virtualization technology is relatively bloated, and no matter what application you apply, you need to create a new system first, and it is not isolated by application, but by system isolation, so administrators cannot see the internal information of the system.

This is the end of the content of "is the docker container a virtual machine"? thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report