This article is a mirror article of machine translation, please click here to jump to the original article.

View: 895|Reply: 1

Docker makes an image and pushes it to the Docker Hub public repository

[Copy link]
Posted on 2025-5-17 18:40:07 | | | |
Requirements: Make an image through Dockerfile and push the image to the Docker Hub public repository for you and your users to pull and use.

First, sign up through your browser to log inThe hyperlink login is visible.website, steps are simple. As shown below:



Create a repository as shown in the following image:



Use on the serverdocker loginLogin command (exit command: docker logout), as shown in the following figure:


USING WEB BASED LOGIN
To sign in with credentials on the command line, use 'docker login -u <username>'

Your one-time device confirmation code is: JCCG-QGCV
Press ENTER to open your browser or submit your device code here:The hyperlink login is visible.

Waiting for authentication in the browser…
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
The hyperlink login is visible.

Login Succeeded

Pull the source code from the git repository and make an image based on the Dockerfile with the following command:

Push to the Docker Hub public repository with the following command:

As shown below:



The mirror can passThe hyperlink login is visible.View.

Reference:The hyperlink login is visible.




Previous:ETL data warehouse mainstream development tools
Next:Build a WebDAV service based on Docker
 Landlord| Posted on 2025-11-13 15:10:31 |
In fact, there is no need to create a repository in the hub, when using the command pushAutomatically create repositories
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com