docker設置http訪問


1 編輯配置文件
   vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://a4fyjv0u.mirror.aliyuncs.com"],
"insecure-registries": [
    "192.168.33.70"
  ]
}
 
其中ip地址為本地搭建的harbor鏡像源地址
 
2 重啟docker 
 
systemctl restart docker
 
3 harbor建立項目
 
4 本地推送到hello去
docker tag 0d120b6ccaa8 192.168.33.70/hello/centos:1.0
 
docker push 192.168.33.70/hello/centos:1.0
 
docker rmi 192.168.33.70/hello/centos:1.0
 
docker pull 192.168.33.70/hello/centos:1.0 


免責聲明!

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



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