小白请教 docker 安装后出现的问题

154 天前
 superdotcom

docker run hello-world Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Run 'docker run --help' for more information

1739 次点击
所在节点    Docker
15 条回复
mumbler
154 天前
docker 已经被墙了,要挂 VPN 才能访问,特别不方便
linxi7
154 天前
1L 正解,网上找个 docker 源配置下
superdotcom
154 天前
@linxi7 找了半天没找到正确答案,给个我 COPY 一下
mumbler
154 天前
@superdotcom #3 deepseek 联网搜索,别再用百度了,万事问 AI
superdotcom
154 天前
@mumbler chatgpt:sudo nano /etc/docker/daemon.json
{
"registry-mirrors": ["https://mirrors.aliyun.com"]
}
好像无效果,结果一样
popboy126
154 天前
https://status.whgd.eu.org/status/docker 从这里捞一个可用的替换上去
hwdq0012
154 天前
替换完需要
sudo systemctl daemon-reload
sudo systemctl restart docker
moooooooo
154 天前
找个 woker 代理下
n2l
154 天前
都上 v2 了,docker 直接走代理是基操,https://www.lfhacks.com/tech/pull-docker-images-behind-proxy/
SenLief
153 天前
直接代理
sgr
153 天前
我是不喜欢重新配 daemon.json 再重启的,更何况会有已经在跑的容器,所以我都是直接用别的地址加速下载了以后,再改名回来。就看你怕不怕别人会不会投毒了

1. 拉取镜像
docker pull docker.1ms.run/hello-world:latest
2. 重命名镜像
docker image tag docker.1ms.run/hello-world:latest hello-world:latest
3. 删除镜像
docker rmi docker.1ms.run/hello-world:latest
snow0
153 天前
新版 docker 代理好像有问题,我昨天换回旧版才下下来镜像
kairlec
153 天前
@sgr 加 "live-restore": true 重启守护程序不会在跑的容器
kairlec
153 天前
@kairlec 不会影响在跑的容器
scoful
124 天前
- docker 的话,推荐一下我的开源项目(狗头保护,求 star ) https://github.com/scoful/pocker
- 试用地址: https://pocker4u.vercel.app/
- 试用密钥:pocker4u
- 文档: https://pocker-doc.vercel.app/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://ex.noerr.eu.org/t/1121607

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX