重慶分公司,新征程啟航
為企業(yè)提供網(wǎng)站建設(shè)、域名注冊(cè)、服務(wù)器等服務(wù)
為企業(yè)提供網(wǎng)站建設(shè)、域名注冊(cè)、服務(wù)器等服務(wù)
昨天公司的開發(fā)同學(xué)跟我說,使用docker pull拉取鏡像時(shí)一直報(bào)錯(cuò),報(bào)錯(cuò)信息如下:
# 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本上進(jìn)行拉取鏡像測(cè)試,發(fā)現(xiàn)是可以正常拉取的!
經(jīng)過嘗試,查看系統(tǒng)messages信息,發(fā)現(xiàn)是網(wǎng)絡(luò)問題,如下:
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"
說明:上面無關(guān)信息我已經(jīng)xxxx忽略掉了~
后來想起來,公司的dockerhub庫平臺(tái)之前被遷移過,域名解析IP更改過!
嘗試修改/etc/hosts強(qiáng)制docker.io相關(guān)的域名解析到其它可用IP。
vim /etc/hosts
添加一個(gè)可用IP:
110.200.19.34 dockerhub.daguan.com //請(qǐng)更改成自己的IP和域名
保存之后重試,已恢復(fù)正常!
如出現(xiàn)下面"timeout"報(bào)錯(cuò)信息,也可以嘗試上面的修復(fù)方法,如下:
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
,沒有效果,請(qǐng)更改下自己電腦上Docker subnet
網(wǎng)段,如下:
在上圖中,我們看到192.168.65.1
網(wǎng)段出現(xiàn)了問題,那么我們更改下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/
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。