Error response from daemon: Get https://registry.cn-hangzhou.aliyuncs.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
dns指定使用阿里的8.8.8.8
vim /etc/resolv.conf
将dns修改为8.8.8.8 才可以。
-
# Generated by NetworkManager -
nameserver 8.8.8.8
本文介绍了一种解决Docker连接超时问题的方法,通过修改DNS设置为8.8.8.8,可以有效避免在尝试连接阿里云镜像仓库时出现的连接超时错误。
2798

被折叠的 条评论
为什么被折叠?



