Home > Article > Operation and Maintenance > What is the use of docker warehouse?
In docker, the warehouse is a place where images are stored centrally. The main function of the warehouse is to store and distribute docker images. The image warehouse is divided into a public image warehouse and a private image warehouse. The public image warehouse can be used by anyone. used, while the private image warehouse is mainly used for the storage and distribution of Docker images for its own applications.
The operating environment of this tutorial: linux7.3 system, docker-1.13.1 version, Dell G3 computer.
What is the use of docker's warehouse?
The three core concepts of Docker are mirror, container and warehouse. The mirror warehouse is the core of Docker technology. One of the components, its main role is to store and distribute Docker images. This article introduces in detail some knowledge points about warehouses and how to build a warehouse.
What is a warehouse?
Docker warehouse (Repository) is similar to a code warehouse. It is a place where Docker stores image files centrally. We divide image warehouses into public image warehouses and private image warehouses. Public image warehouses can be used by anyone, while private image warehouses refer to image warehouses deployed within a company or organization and mainly used for the storage and distribution of Docker images for their own applications.
You need to enter your username and password to log in. After successful login, we can pull all the images under your account from docker hub.
$ docker login
To exit docker hub, you can use the following command:
$ docker logout
Pull the image
You can use the docker search command to find the official warehouse image in and use the docker pull command to download it locally.
Recommended learning: "docker video tutorial"
The above is the detailed content of What is the use of docker warehouse?. For more information, please follow other related articles on the PHP Chinese website!