Use Docker Hub public image warehouse

Create an account and log in here is the landing entrance

Login account

Currently inside the warehouse, and now to create a landing after entering

Here I chose a public warehouse, others can also access to

Landing came on the server, upload image to warehouse

[root@docker ~]# docker login

Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.

Username: zhaocheng172

Password:

WARNING! Your password will be stored unencrypted in /root/.docker/config.json.

Configure a credential helper to remove this warning. See

https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

Our image tagging

[root@docker ~]# docker tag nginx:latest zhaocheng172/nginx:v1

Uploaded to the hub on

[root@docker ~]# docker push zhaocheng172/nginx:v1

View our warehouse is not created successfully

[root@docker ~]# docker search zhaocheng172

NAME                DESCRIPTION         STARS               OFFICIAL            AUTOMATED

zhaocheng172 / adc  

Between another machine pull to mirror our local warehouse

[root@ce-docker ~]# docker pull zhaocheng172/nginx:v1

v1: Pulling from zhaocheng172/nginx

8ba884070f61: Downloading  10.79MB/75.4MB

 

Guess you like

Origin www.cnblogs.com/zc1741845455/p/11089475.html