一.問題
當(dāng)使用docker search mysql時
Error response from daemon: Get "https://index.docker.io/v1/search?q=centos&n=25": dial tcp: lookup index.docker.io on 192.168.10.2:53: server misbehaving
二,解決問題
1.docker鏡像問題
cd /etc/docker? -->daemon.json。沒有就自行新建。
{
? "registry-mirrors": ["https://registry.docker-cn.com"]
}
?
2.host文件文件中未/正確配置ip
2.1 獲取正確的ip
通過谷歌的114.114.114.114? ?DNS服務(wù)器獲得正確的ip
dig @114.114.114.114 index.docker.io
?文章來源地址http://www.zghlxwxcb.cn/news/detail-645103.html
2.2 將其中一個ip追加到cd /etc? -->hosts
文章來源:http://www.zghlxwxcb.cn/news/detail-645103.html
?
到了這里,關(guān)于Error response from daemon: Get https://index.docker.io/v1/search?q=&n=25: net/http: TLS timeout的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!