In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "what's the difference between docker containers and warehouses". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "what's the difference between a docker container and a warehouse"?
Container, image, and repository are three very important basic concepts in docker, which make up the entire life cycle of Docker. Let's introduce the docker container and the warehouse respectively.
Docker container (Container): similar to a lightweight sandbox (because Docker is a virtual technology based on the Linux kernel, it consumes very few resources), Docker uses containers to run and isolate applications.
Docker repository (Repository): similar to a code repository, it is a centralized place for Docker to store image files.
Docker container
Docker CCS is a running instance created by a docker image. It can be started, started, stopped, and deleted, and these containers are isolated and invisible from each other.
The docker container is similar to a virtual machine and can be executed including start, stop, delete, etc. Each container is isolated from each other. A specific application is run in the container, containing the code for the specific application and the required dependent files. Think of the container as a simple version of the linux environment (including root user rights, process space, user space, cyberspace, etc.) and applications running in it.
Docker warehouse
If you use git and github, it's easy to understand the warehouse concept of docker. The concept of a docker repository is similar to that of git.
Docker repository is used to contain the location of images. Docker provides a registration server (register) to store multiple repositories, and each repository can contain multiple images with different tag.
According to whether the stored images are publicly shared or not, Docker repositories are divided into public repositories (Public) and private repositories (Private). The default warehouse used in docker operations is the docker hub public warehouse.
At present, the largest public repository is Docker Hub, which stores a large number of images for users to download. Domestic open warehouses, including Docker Pool, can provide stable domestic access. If users do not want to share their image files publicly, Docker also allows users to create a private repository within the local network that can only be accessed by themselves.
After users have created their own image, they can use the push command to upload it to a public or private repository. So the next time you use this image on another machine, you just need to pull down from the warehouse.
At this point, I believe you have a deeper understanding of "what's the difference between docker containers and warehouses?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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.