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文件
vim /etc/hosts
添加上橙色划线的一行即可