In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
After the image is successfully built, it can be used as long as there is a docker environment, but the image must be pushed to Docker Hub. The image we created before does not meet the tag requirements of Docker Hub, because the username registered in Docker Hub is boonyadocker instead of boonya, so we need to modify the docker tag and finally push the image to the public repository with docker push command.
Docker hub registered users
Register account on official website: hub.docker.com/
Log in to docker on local Linux:
docker login
Enter your username and password to login:
docker@default:~$ docker loginLogin 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: boonyadockerPassword: Login Succeededdocker@default:~$
tag Modify image name
The specifications for push mirroring are:
docker push Registered username/mirror name
tag command modified to mirror the specification:
docker tag boonya/tomcat-allow-remote boonyadocker/tomcat-allow-remote
View the modified specification mirror:
docker@default:~$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEboonyadocker/tomcat-allow-remote latest 6137f64875dd 7 hours ago 571MBboonyadocker/tomcat-web latest 09677d05b579 2 days ago 571MB e1471ab1845a 3 days ago 188MB cf240e31edfb 3 days ago 188MB 717961796ae2 3 days ago 334MBapptomcat 1.0 249dc3f5dfb0 3 days ago 334MBtomcat 8 a2fbbcebd67e 8 days ago 334MBubuntu 14.04 4a2820e686c4 2 weeks ago 188MBwurstmeister/kafka latest 12453f4efa7b 6 weeks ago 265MBdocker@default:~$
Push Mirrors to Docker Hub
Push the mirror with the push command:
docker push boonyadocker/tomcat-allow-remote:latest
Note: Docker Hub push speed is very slow, wait patiently, it is likely to fail, failure will try to retransmit many times, and then disconnect the push (but pushed up will be retained, retention time does not know how long).
Here is the uploaded output (multiple retransmissions):
docker@default:~$ docker push boonyadocker/tomcat-allow-remote:latestThe push refers to a repository [docker.io/boonyadocker/tomcat-allow-remote]464a44ea0195: Layer already exists 29b57e33a4da: Pushed d649a240e453: Layer already exists d0757a6730d0: Layer already exists 768dcfe5d05f: Layer already exists f5cfc06b640d: Layer already exists 9669d6b73383: Layer already exists latest: digest: sha256:1e7562a15ef1728f213922d9633be67f3025447d0a641e333a8ec5107749c386 size: 11802docker@default:~$
Patience is needed because large files are time-consuming.
Visit Docker Hub Publishing Images
After uploading, visit https://hub.docker.com/r/boonyadocker/tomcat-allow-remote/, as shown in the following figure, everyone can use the mirror I released:
A search on Docker Hub can also be found:
At this point we have reached the point where we publish our images to Docker Hub repositories.
Docker uses published images
Search for published mirrors:
docker@default:~$ docker search boonyadocker/tomcat-allow-remoteNAME DESCRIPTION STARS OFFICIAL AUTOMATEDboonyadocker/tomcat-allow-remote In this Tomcat image server you can use ma... 0 docker@default:~$
Because we have already published our own image, we can use docker pull command to pull the image directly in the future:
docker pull boonyadocker/tomcat-allow-remote
Note: Mirrors are based on Tomcat8's remote administrative role permissions, and the administrative account and password are tomcat/password.
The above is all the content of this article, I hope to help everyone's study, but also hope that everyone a lot of support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.