校园网无法访问 docker 镜像求助

1次阅读

共计 509 个字符,预计需要花费 2 分钟才能阅读完成。

Ubuntu 系统,正常安装完 docker 后尝试启动 hello world,但是得到错误提示

root@me-VirtualBox:/etc/docker# sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

鉴于校园网有屏蔽谷歌个别路由的恶劣情况,遂切换至手机热点执行相同操作,结果比较吊诡的是居然换了网还是连不上。

然后又尝试换源,换源无效,错误提示仍然是 https://registry-1.docker.io/v2/ 的坏请求,个人感觉是换源没装上。但是教程确实是说修改 /etc/docker/daemon.json

有没有老哥来看看啥问题,不能用 docker 也太氮疼了

正文完
 0