docker pull鏡像失敗問題解決方法
@[TOC](Error response from daemon: Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
還有下邊這兩個(gè)問題的嘗試解決辦法
Error response from daemon: Get "https://index.docker.io/v1/search?q=mysql&n=25
1.更改鏡像加速地址
vim /etc/docker/daemon.json { "registry-mirrors": [ "https://do.nark.eu.org", "https://dc.j8.work", "https://docker.m.daocloud.io", "https://dockerproxy.com", "https://docker.mirrors.ustc.edu.cn", "https://docker.nju.edu.cn" ] } 重啟docker systemctl restart docker
2.添加dns
vim /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4 重啟docker systemctl restart docker
到此這篇關(guān)于docker pull鏡像失敗問題解決嘗試的文章就介紹到這了,更多相關(guān)docker pull鏡像失敗內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
docker-compose如何實(shí)現(xiàn)滾動更新
這篇文章主要介紹了docker-compose如何實(shí)現(xiàn)滾動更新方式,具有很好的參考價(jià)值,希望對大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2024-05-05Docker實(shí)現(xiàn)分布式應(yīng)用功能教程
這篇文章主要介紹了Docker實(shí)現(xiàn)分布式應(yīng)用功能,涉及docker分布式應(yīng)用、負(fù)載均衡相關(guān)實(shí)現(xiàn)技巧與操作注意事項(xiàng),需要的朋友可以參考下2018-06-06