Harbor-企業級Registry服務器使用(圖解)


1、登錄本地Harbor服務首頁

2、用戶管理,添加用戶管理容器項目

 

 三、用戶登錄、鏡像推送

 

root@harbor:~# docker login 127.0.0.1:8999
Username (dev): admin
Password: 
Login Succeeded

可以查看推送命令

root@harbor:~# docker tag python:alpine 127.0.0.1:8999/my-images/python:alpine

root@harbor:~# docker tag app:v3 127.0.0.1:8999/my-images/app:v3

root@harbor:~# docker push 127.0.0.1:8999/my-images/python:alpine

root@harbor:~# docker push 127.0.0.1:8999/my-images/app:v3

 

 

查看上傳的鏡像

 

 

4、客戶端下載鏡像測試

root@ubuntu:~# docker login 39.xx.xx.xx:8999
Username: admin
Password: 
Error response from daemon: Get https://39.xx.xx.xx:8999/v1/users/: http: server gave HTTP response to HTTPS client

解決辦法:
root@ubuntu:~# echo "{ "insecure-registries":["xx.xx.xx.xx:8999"] }" > /etc/docker/daemon.json
root@ubuntu:~# cat /etc/docker/daemon.json                                                          
{ "insecure-registries": ["39.104.63.208:8999"] }
root@ubuntu:~# systemctl daemon-reload
root@ubuntu:~# systemctl restart docker
root@ubuntu:~# docker pull 39.xx.xx.xx:8999/my-images/app:v3

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM