解决docker镜像pull超时问题

第一步:通过dig @114.114.114.114 registry-1.docker.io找到可用IP

dig @114.114.114.114 registry-1.docker.io

  

第二步:尝试修改/etc/hosts强制docker.io相关的域名解析到其它可用IP

vim /etc/hosts

添加一个可用IP:

34.199.77.19 registry-1.docker.io

  

详情参考:https://blog.csdn.net/quanqxj/article/details/79479943

猜你喜欢

转载自www.cnblogs.com/andy9468/p/10684392.html
今日推荐