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

What is the difference between a docker container and a vm

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains "what is the difference between docker container and vm". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the difference between docker container and vm".

VM (VMware) is to create a virtual layer, a virtualized operating system, a virtualized warehouse, and then install applications on the basis of the host machine and the host machine operating system.

Container (Docker container) is to create the Docker engine on the host machine and the host machine operating system, and then install the application on the basis of the engine.

Introduction to VM virtual machine

The virtual machine system can be created by generating a new virtual image of the existing operating system (such as iso), that is, a large file.

After entering the virtual system, all operations are carried out in this new independent virtual system, which can install and run software independently, save data, and even have its own independent desktop interactive operations. however, it will not have any impact on the real host system, and what is more convenient is that this system can flexibly switch between the host system and the virtual image.

What is a docker container

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

For example, you develop a website backend locally with Python, and after the development test is complete, you can package Python3 and its dependent packages, Flask and its various plug-ins, Mysql, Nginx, etc., into a container, and then deploy to any environment you want to deploy to.

We can run multiple unrelated docker containers on a machine, and each container is equivalent to a container.

What's the difference between the two?

1. Traditional virtualization is to virtualize multiple OS on the basis of hardware physical resources, and then build 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, so its resource consumption and performance consumption have great advantages compared with traditional virtualization.

2. 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.

Thank you for your reading, the above is the content of "what is the difference between docker container and vm". After the study of this article, I believe you have a deeper understanding of what is the difference between docker container and vm. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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