Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use public Registry

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use public Registry, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

The most direct way to save and distribute images is to use Docker Hub.

Docker Hub is a public Registry maintained by Docker. Users can save their images to Docker Hub's free repository. If you do not want others to access your own image, you can also purchase a private repository.

Except that Docker Hub,quay.io is another public Registry that provides services similar to Docker Hub.

Here's how to access our images with Docker Hub.

First of all, you have to register an account on Docker Hub.

Log in on Docker Host.

Here I use my own account, the user name is cloudman6, enter the password and log in successfully.

Modify the repository of the image to match the Docker Hub account.

Docker Hub in order to distinguish the same name image of different users, the registry of the image should contain the user name. The full format is [username] / xxx:tag.

We rename the image through the docker tag command.

Note: the image maintained by Docker itself does not have a user name, such as httpd.

Upload the image to Docker Hub via docker push.

Docker will upload every layer of the mirror. Because the cloudman6/httpd:v1 image is actually exactly the same as the official httpd image, and there are all the mirror layers on the Docker Hub, very little data is actually uploaded. Similarly, if our image is based on the base image, only the newly added mirror layer will be uploaded. If you want to upload all the images in the same repository, you can omit the tag section, for example:

Docker push cloudman6/httpd

Log in to https://hub.docker.com and you can see the uploaded image in Public Repository.

If you want to delete the uploaded image, you can only operate it on the Docker Hub interface.

This image can be used by other Docker host downloads.

On how to use the public Registry to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report