- Learn OpenShift
- Denis Zuev Artemii Kropachev Aleksey Usov
- 202字
- 2021-08-13 16:03:46
Uploading images to the Docker registry
Now we know how to search, pull, remove, save, load, and list available images. The last piece we are missing is how to push images back to Docker Hub or a private registry.
To upload an image to Docker Hub, we need to do a few tricks and follow these steps:
- Log in to Docker Hub:
$ docker login
Username: #Enter your username here
Password: #Enter your password here
Login Succeeded
- Copy the Docker image you want to push to a different path in the Docker repository on your server:
$ docker tag httpd:latest flashdumper/httpd:latest
Note that flashdumper is your Docker Hub username.
- Finally, push the copied image back to Docker Hub:
$ docker push flashdumper/httpd:latest
The output of the preceding command will be as shown in the following screenshot:

Now the image is pushed to your Docker Hub and available for anyone to download.
$ docker search flashdumper/*
The output of the preceding command will be as shown in the following screenshot:
You can check the same result using a web browser. If you go to https://hub.docker.com/ you should be able to see this httpd image available under your account:
Docker Hub account images
推薦閱讀
- Modern Web Testing with TestCafe
- Linux網(wǎng)絡(luò)內(nèi)核分析與開發(fā)
- Windows Phone 8 Application Development Essentials
- Android物聯(lián)網(wǎng)開發(fā)細(xì)致入門與最佳實踐
- 突破平面3ds Max動畫設(shè)計與制作
- VMware Horizon View Essentials
- Hands-On GPU Programming with Python and CUDA
- Learn CUDA Programming
- μC/OS-III內(nèi)核實現(xiàn)與應(yīng)用開發(fā)實戰(zhàn)指南:基于STM32
- Linux網(wǎng)絡(luò)操作系統(tǒng)項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- Windows Server 2008組網(wǎng)技術(shù)與實訓(xùn)(第3版)
- VMware Horizon Mirage Essentials
- Java EE 8 High Performance
- Angular權(quán)威教程
- Implementing Cloud Design Patterns for AWS(Second Edition)