The local docker image uploaded to Docker Hub

1: Log Docker Hub

https://hub.docker.com/

 

 

 

 

2: Execute the command: docker login, enter Docker Hub user name and password.

[root@localhost ~]# docker login

 

 3: View Mirror: docker images

[root@localhost ~]# docker images

I eureka here ready to upload this image.

 

 4: Change the name eureka mirror, execute the following command: (Note: If you do not change the name directly # docker push eureka: latest being given: denied: Access to requested at The Resource IS denied )

[root@localhost ~]# docker tag eureka:latest ss8795435/eureka:1.0

Explain command: docker tag mirror REPOSITORY: TAG docker username / Custom name: version.

 

 5: Upload images, execute the command:

[root@localhost ~]# docker push ss8795435/eureka:1.0

 

 6: Docker Hub View Mirror

 

 

End!

Guess you like

Origin www.cnblogs.com/suenshuai/p/11652437.html