docker pull ubuntu
遇到問題如下
Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/2.04: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&serviceregistry.docker.io: net/http: TLS handshake timeout
說明訪問不到鏡像源
解決方式
通過
dig @114.114.114.114 registry-1.docker.io
找到可用IP地址
然后修改hosts文件文章來源:http://www.zghlxwxcb.cn/news/detail-572589.html
vim /etc/hosts
添加上橙色劃線的一行即可文章來源地址http://www.zghlxwxcb.cn/news/detail-572589.html
到了這里,關(guān)于Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout報錯解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!