what is docker repository

青灯夜游
Release: 2022-02-23 15:32:51
Original
7732 people have browsed it

In docker, a warehouse is a place where images are stored centrally. It is a centralized service for storing and distributing images; each warehouse can contain multiple tags, and each tag corresponds to an image. Usually, a warehouse will contain images of different versions of the same software, and tags are often used to correspond to each version of the software.

what is docker repository

The operating environment of this tutorial: linux5.9.8 system, docker-1.13.1 version, Dell G3 computer.

The warehouse (Repository) is a place where images are stored centrally. Sometimes the warehouse and the warehouse registration server (Registry) are confused and are not strictly distinguished. In fact, multiple warehouses are often stored on the warehouse registration server, and each warehouse contains multiple images, and each image has a different tag.

Usually, a warehouse will contain images of different versions of the same software, and tags are often used to correspond to each version of the software. We can specify which version of this software is the image through the format of :

Take the Ubuntu image as an example. ubuntu is the name of the warehouse, which contains different version labels, such as 16.04, 18.04. We can specify which version of the image is required through ubuntu:16.04 or ubuntu:18.04. If a tag is omitted, such as ubuntu, it will be treated as ubuntu:latest.

The warehouse name often appears in the form of a two-part path, such as jwilder/nginx-proxy

The warehouse is divided into two forms: public warehouse (Public) and private warehouse (Private).

The largest public warehouse is Docker Pool, etc., which can provide mainland users with more stable and faster access.

Of course, users can also create a private warehouse within the local network.

After the user creates his own image, he can use the push command to upload it to a public or private warehouse, so that next time he uses this image on another machine, he only needs to pull it from the warehouse. That's it.

Note: The concept of Docker warehouse is similar to Git, and the registration server can be understood as a hosting service like GitHub.

Recommended learning: "docker video tutorial"

The above is the detailed content of what is docker repository. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template