docker推送阿里鏡像倉庫,解決 error pulling image configuration: Get...


推送阿里鏡像

(解決 error pulling image configuration: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/ )
enter description here

上面的報錯多半是這個production.cloudflare.docker.com域名解析失敗(可以寫dns 8.8.8.8 進行嘗試),或者是解析成功但是無法訪問,我們最直接的解決方法可以用阿里鏡像倉庫進行解決

  1. 創建自己的命名空間 並設置為公開 https://cr.console.aliyun.com/cn-hangzhou/instance/namespaces
    enter description here
  2. 設置固定密碼准備進行上傳
    enter description here
  3. 進行本地修改tag進行上傳(注意: 這里的倉庫地址可以選擇地區,下面案例是走的杭州的鏡像倉庫,每個地區鏡像倉庫不互通)
docker login --username=176xxxxxxx registry.cn-hangzhou.aliyuncs.com

docker tag x602/grafana-custom:8.2.0 registry.cn-hangzhou.aliyuncs.com/x602/grafana-custom:8.2.0

docker push registry.cn-hangzhou.aliyuncs.com/x602/grafana-custom:8.2.0
  1. 進行測試驗證
    鏡像倉庫已經有對應鏡像倉庫
    enter description here
docker pull registry.cn-hangzhou.aliyuncs.com/x602/grafana-custom:8.2.0

拓展

相關 dockerhub https://registry.hub.docker.com/

推送到docekrhub命令

docker login --username=x602 --password=xxxxxx
docker tag grafana-custom x602/grafana-custom 
docker push x602/grafana-custom


免責聲明!

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



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