In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What this article shares with you is about the relationship of docker image container repository. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
What is the relationship between the docker image container repository? Docker provides a containerized process of handling software or programs. In the core concepts of docker, containers, images, and repositories are included. Let's look at each of them.
Mirror (Image)
Many people are confused when learning docker, and a lot of things have the concept of mirror image. For example, the .iso file of our installation system is actually an image, which you can think of as a template.
We can use docker to create containers according to this template to run, in fact, the image is like a repository on github, we can clone the source code and run it, the running code can be a website, an application, which can be called a container.
To put it bluntly, an image is a bunch of static templates, and the running image is the container. The image generally requires us to pull it down and is read-only, just like we cloned the repository on the github.
There is a hierarchical concept in docker images, that is, an image may be based on several images. For example, a web operating environment may require operating system ubuntu, database mysql, and .net core runtime runtime. Then the image we pull will package these images, just like a packaged operating environment, just like pulling down a Mini computer.
Container (Container)
When we pull an image and run it, we will run a container based on the image. The container is just like our application, which can be accessed and stopped. We use the run command many times and run many docker containers, or instances of the image. From this point of view, it is also appropriate to think of a mirror as a class and a container as an instance out of new.
Warehouse (Repository)
The place where the image is stored is the warehouse, just like the place where the code is stored is github. We call github the repository of code, and github is the largest repository. So the place where the docker image is stored is called dockerhub, which is the central warehouse of docker.
In fact, there is already a website called dockerhub, which is the official repository for storing docker images. Many official ones are also kept here to ensure the security and reliability of the images. We can pull the images from above to run our software.
Of course, we can also make our own images and push them, but these must be officially reviewed to prevent some people from writing malicious code. However, we can push to our own dockerhub for our own use, which is just like our github account, which is a private mirror.
The above is what the relationship between docker image container repository is, and 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
Chntpw cracked the windows login password
© 2024 shulou.com SLNews company. All rights reserved.