[Problem feedback] docker 运行不成功
Tofloor
poster avatar
1***1@qq.com
deepin
2025-01-26 13:27
Author

Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp [2a03:2880:f12a:83:face:b00c:0:25de]:443: i/o timeout.

这个问题该怎么解决,docker run hello-world不行, docker已经装上了,难道还缺啥?

image.png

Reply Favorite View the author
All Replies
犬次郎大王
deepin
2025-01-26 14:14
#1

你这个报错应该是连不上docker镜像的网站,是网络问题,跟系统没关系

Reply View the author
raspbian
deepin
2025-01-26 14:40
#2

开魔法 或者cloudflare设置反代

另外 看你图上想表达的意思 不会以为设置了export all_proxy 系统级代理 docker就会自动跟着走代理了吧?

https://zhangyiming748.github.io/post/docker_set_daemon_use_proxy/

Reply View the author
raspbian
deepin
2025-01-26 15:31
#3

ping走的是icmp协议

Reply View the author
毛毛虫
deepin
2025-01-26 15:39
#4

找国内docker镜像代理网站

Reply View the author
泡饭
deepin
2025-01-26 18:00
#5

网络问题,你没有公网的,所以你切换成镜像代理网站即可

Reply View the author
bzero
deepin
2025-01-26 18:09
#6

刚好我这边也用docker,分享给你。

目前还能用的寥寥无几的国内镜像源:

https://status.daocloud.io/status/docker

Reply View the author
bzero
deepin
2025-01-26 18:11
#7

需要修改 daemon.json

"registry-mirrors": [
    "https://xxx"
  ]
Reply View the author
1***1@qq.com
deepin
2025-01-26 19:31
#8
raspbian

开魔法 或者cloudflare设置反代

另外 看你图上想表达的意思 不会以为设置了export all_proxy 系统级代理 docker就会自动跟着走代理了吧?

https://zhangyiming748.github.io/post/docker_set_daemon_use_proxy/

开魔法了也不行

Reply View the author
1***1@qq.com
deepin
2025-01-26 19:37
#9
bzero

刚好我这边也用docker,分享给你。

目前还能用的寥寥无几的国内镜像源:

https://status.daocloud.io/status/docker

还是不行

Reply View the author
bzero
deepin
2025-01-26 21:03
#10
1***1@qq.com

还是不行

那就把ipv6关掉:

网络设置--ipv6禁用

Reply View the author
引栗先生
deepin
2025-01-26 22:23
#11

sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": [ "https://docker.nju.edu.cn", "https://hub.littlediary.cn", "https://hub.xdark.top", "https://dockerpull.org", "https://hub.crdz.gq", "https://docker.1panel.live", "https://docker.unsee.tech" ] } EOF sudo systemctl daemon-reload sudo systemctl restart docker

Reply View the author
引栗先生
deepin
2025-01-27 21:33
#12
bzero

需要修改 daemon.json

"registry-mirrors": [
    "https://xxx"
  ]

其实就是这个方案。

sudo mkdir -p /etc/docker

sudo tee /etc/docker/daemon.json <<-'EOF'

{

"registry-mirrors": [

"https://docker.nju.edu.cn",

"https://hub.littlediary.cn",

"https://hub.xdark.top",

"https://dockerpull.org",

"https://hub.crdz.gq",

"https://docker.1panel.live",

"https://docker.unsee.tech"

]

}

EOF

sudo systemctl daemon-reload

sudo systemctl restart docker

Reply View the author
假大空
deepin
2025-01-27 22:58
#13

确实国内能用的源越来越少了

Reply View the author
根深蒂固
deepin
2025-01-28 14:23
#14

直接去装个1panel 官方脚本自动给装docker

Reply View the author
raspbian
deepin
2025-01-28 16:02
#15
It has been deleted!
raspbian
deepin
2025-01-28 16:09
#16

要不你先更新一下版本

Reply View the author
auv
deepin
2025-02-11 19:49
#17

在daemon.json中走一个本机代理就可以了 我也是升了v23后 加速源不生效 不是源本身的问题

Reply View the author