昨天公司的開發(fā)同學跟我說,使用docker pull拉取鏡像時一直報錯,報錯信息如下:
創(chuàng)新互聯建站作為成都網站建設公司,專注成都網站建設、網站設計,有關成都企業(yè)網站定制方案、改版、費用等問題,行業(yè)涉及玻璃貼膜等多個領域,已為上千家企業(yè)服務,得到了客戶的尊重與認可。
# docker pull dockerhub.daguan.com/ceshi/data_test:18.12.13.1153
Error response from daemon: manifest for dockerhub.daguan.com/ceshi/data_test:18.12.13.1153 not found
我開始在自己的Mac本上進行拉取鏡像測試,發(fā)現是可以正常拉取的!
經過嘗試,查看系統(tǒng)messages信息,發(fā)現是網絡問題,如下:
Dec 20 11:13:46 dockertest dockerd: time="2018-12-20T11:13:46.498227008+08:00"
level=error msg="failed removing service binding for xxxxxx epRec:{rec_priv_indexing.1.xxxx rec_priv_indexing xxxxxx 192.168.246.171 192.168.246.250
[] [indexing] [xxxxxx]} err:network xxxxxxxx not found"
說明:上面無關信息我已經xxxx忽略掉了~
后來想起來,公司的dockerhub庫平臺之前被遷移過,域名解析IP更改過!
嘗試修改/etc/hosts強制docker.io相關的域名解析到其它可用IP。
vim /etc/hosts
添加一個可用IP:
110.200.19.34 dockerhub.daguan.com //請更改成自己的IP和域名
保存之后重試,已恢復正常!
如出現下面"timeout"報錯信息,也可以嘗試上面的修復方法,如下:
Error response from daemon: Get https://index.docker.io/v1/users/: dial tcp: lookup index.docker.io on 192.168.65.1:53: read udp 192.168.65.2:58812->192.168.65.1:53: i/o timeout
或:
如果使用上面的方法即修改/etc/hosts
,沒有效果,請更改下自己電腦上Docker subnet
網段,如下:
在上圖中,我們看到192.168.65.1
網段出現了問題,那么我們更改下Docker subnet 為192.168.66.0
,重啟docker即可!
或者是:
[root@archlinux quanxj]# docker image pull library/hello-world
Using default tag: latest
latest: Pulling from library/hello-world
ca4f61b1923c: Pull complete
error pulling image configuration: Get https://registry-1.docker.io/v2/library/hello-world/blobs/sha256:f2a91732366c0332ccd7afd2a5c4ff2b9af81f549370f7a19acd460f87686bc7: dial tcp 35.169.231.249:443: i/o timeout
解決Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/
網站題目:解決Docker的Errorresponsefromdaemon報錯
文章路徑:http://www.rwnh.cn/article8/gdopop.html
成都網站建設公司_創(chuàng)新互聯,為您提供企業(yè)網站制作、關鍵詞優(yōu)化、定制網站、手機網站建設、標簽優(yōu)化、軟件開發(fā)
聲明:本網站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯