1,162
社区成员
发帖
与我相关
我的任务
分享
{
"registry-mirrors":["https://ixoaalsa.mirror.aliyuncs.com","https://docker.mirrors.ustc.edu.cn"]
}
[root@localhost ~]# systemctl daemon-reload
[root@localhost ~]# systemctl restart docker
[root@localhost ~]# docker pull tomcat
Using default tag: latest
Trying to pull repository docker.io/library/tomcat ...
Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
vim /etc/resolv.conf
2、把里面的内容清除,并改为:
#内容不用清理,把这两行放在顶行
nameserver 8.8.8.8
nameserver 8.8.8.4
3、重启网络服务
#不用重启
systemctl restart network