























测试能否访问 Docker Hub
curl -I https://registry-1.docker.io/v2/
如果也超时,说明是网络问题。
如果你在国内,访问 Docker Hub 很可能被墙,可以考虑:
使用镜像加速器(例如阿里云、腾讯云、DaoCloud、科大源)。
使用代理(VPN / HTTP 代理)来访问。
编辑 Docker 配置文件 /etc/docker/daemon.json:
{ "registry-mirrors": [ "https://docker.m.daocloud.io", "https://mirror.ccs.tencentyun.com", "https://registry.docker-cn.com" ] }
保存后重启 Docker:
sudo systemctl daemon-reexec
sudo systemctl restart docker
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。