In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of containers in docker, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.
Overview of docker
Docker is an open source software deployment solution
Docker is also a lightweight application container framework.
Docker can package, distribute, and run any application. This is also the product philosophy of docker: Docker-Build, Ship, and Run Any App, Anywhere.
Docker uses LXC (Namespace+CGroups), that is, lightweight design is realized through image management mechanism on the basis of Namespace [resource isolation] and CGroups [resource control] technology of Linux kernel.
Docker composition
Docker consists of docker server and dockerclient, where docker includes components: container (container), image (image) and repository (repositories), as shown below:
Docker vs VM
As a kind of container, docker is very different from traditional VM. First of all, compare the location of the two in terms of architecture:
By comparison, we can see that VM is actually a hypervisor operating system based on hardware, and the underlying hardware resources are shared among multiple VM. Docker is isolated by Namespace and CGroups technology on the basis of Linux, which makes docker not only run on hardware operating system, but also run on VM. The difference between the two also determines the difference between the two. Here, the difference between the two is summarized as follows:
Since docker has such a feature, what can docker do? The following figure shows eight scenarios of docker. Starting from the actual work, the author mainly uses docker to simplify the release process of existing products, reducing a lot of environment configuration work. Because of the isolation of docker, the application can be packaged into docker images, and different versions of the same product can be packaged into different images, which also facilitates the testing work.
Therefore, it is comprehensive to look at the changes brought about by docker,docker from different positions.
Thank you for reading this article carefully. I hope the article "sample Analysis of containers in docker" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.