1.最后錯誤信息為這類:server misbehaving DNS錯誤問題
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?no such host?表示DNS域名解析的問題
先上解決方法:
1.查看DNS客戶機配置文件
cat /etc/resolv.conf
看到這樣這樣的情況,你只有一個nameserver
?2.修改DNS配置文件
vim /etc/resolv.conf
3.重新拉取
?已經(jīng)可以成功拉取了,這就是由于DNS配置導致的問題,大家可以直接去配置,筆者也是參考其他作者嘗試解決的,寫下來幫助更多的新手少走彎路。
2.另一種錯誤就是說是因為加速器的原因,錯誤異常為timeout
Error response from daemon: Get https://registry-1.docker.io/v2/library/mysql/manifests/5.7: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fmysql%3Apull&service=registry.docker.io: net/http: TLS handshake timeout
這種超時錯誤,解決方案是:
1.打開,如果沒有自己就創(chuàng)建
vim /etc/docker/daemon.json
2.添加加速鏡像文章來源:http://www.zghlxwxcb.cn/news/detail-737639.html
{
"registry-mirrors":
[
"https://docker.m.daocloud.io",
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn",
"https://docker.mirrors.ustc.edu.cn"
]
}
3.重啟文章來源地址http://www.zghlxwxcb.cn/news/detail-737639.html
systemctl daemon-reload
systemctl restart docker
到了這里,關(guān)于docker拉取鏡像時報錯dial tcp: lookup index.docker.io on xxx.xxx.xxx.xxx:xxx: server misbehaving的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!