Docker local image push to private repository - Docker Registry

Introduction to private repositories

The Alibaba Cloud ECS Docker ecosystem is as follows:
insert image description here
Last time we mentioned the use of Alibaba Cloud's warehouses, but public image warehouses such as Dockerhub and Alibaba Cloud may be inconvenient, and it is impossible for confidential companies to provide images to the public network, so it is necessary to create A local private repository for teams to use to build images based on internal company projects.

At this time, Docker Registry will be used, an officially provided tool that can be used to build private image repositories

Private warehouse implementation steps

1) Download the mirror

[root@k8s-master ~]# docker pull registry
Using default tag: latest
latest: Pulling from library/registry
79e9f2f55bf5: Pull complete 
0d96da54f60b: Pull complete 
5b27040df4a2: Pull complete 
e2ead8259a04: Pull complete 
3790aef225b9: Pull complete 
Digest: sha2

Guess you like

Origin blog.csdn.net/xinshuzhan/article/details/123668126