xubiaolin / docker-zerotier-planet

一分钟私有部署zerotier-planet服务
2.5k stars 466 forks source link

Dockerhub 被墙问题 #151

Closed TongZiGang closed 1 month ago

TongZiGang commented 5 months ago

请问下,如题,有人遇到过么?我网上搜索了一下大多数的回答都是在说DNS被污染了,这问题是不是需要大佬去处理下呢

xubiaolin commented 5 months ago

docker hub被墙了,执行以下命令重试

sudo tee /etc/docker/daemon.json <<EOF { "registry-mirrors": [ “https://docker.mirrors.aster.edu.pl”, "https://docker.mirrors.imoyuapp.win" ] } EOF

sudo systemctl daemon-reload sudo systemctl restart docker

TongZiGang commented 5 months ago

感谢楼上

TongZiGang commented 5 months ago

请问下大佬,在没有安装过docker的国内设备中怎么弄 执行命令之后报如下 root@hcss-ecs-768d:~# sudo tee /etc/docker/daemon.json <<EOF { "registry-mirrors": [ “https://docker.mirrors.aster.edu.pl”, "https://docker.mirrors.imoyuapp.win" ] } EOF

sudo systemctl daemon-reload sudo systemctl restart docker { "registry-mirrors": [ “https://docker.mirrors.aster.edu.pl”, "https://docker.mirrors.imoyuapp.win" ] } Failed to restart docker.service: Unit docker.service not found.

TongZiGang commented 5 months ago

请问下大佬,在没有安装过docker的国内设备中怎么弄 执行命令之后报如下 root@hcss-ecs-768d:~# sudo tee /etc/docker/daemon.json <<EOF { "registry-mirrors": [ “https://docker.mirrors.aster.edu.pl”, "https://docker.mirrors.imoyuapp.win" ] } EOF

sudo systemctl daemon-reload sudo systemctl restart docker { "registry-mirrors": [ “https://docker.mirrors.aster.edu.pl”, "https://docker.mirrors.imoyuapp.win" ] } Failed to restart docker.service: Unit docker.service not found.

去搜的资料,国内的镜像站都被屏蔽了T_T

xubiaolin commented 5 months ago

请问下大佬,在没有安装过docker的国内设备中怎么弄 执行命令之后报如下 root@hcss-ecs-768d:~# sudo tee /etc/docker/daemon.json <<EOF { "registry-mirrors": [ “https://docker.mirrors.aster.edu.pl”, "https://docker.mirrors.imoyuapp.win" ] } EOF

sudo systemctl daemon-reload sudo systemctl restart docker { "registry-mirrors": [ “https://docker.mirrors.aster.edu.pl”, "https://docker.mirrors.imoyuapp.win" ] } Failed to restart docker.service: Unit docker.service not found.

装一个docker就行

TongZiGang commented 5 months ago

谢谢,小白不太清楚怎么做,我去搜一下怎么安装吧

xubiaolin commented 5 months ago

谢谢,小白不太清楚怎么做,我去搜一下怎么安装吧

我的文档里面有docker的安装教程

TongZiGang commented 5 months ago

首先谢谢大佬解答,如果你说的文档是指[README]中的话,那个安装docker的命令因为被墙了导致无法使用,若是其他地方麻烦贴一下地址,谢谢

xubiaolin commented 5 months ago

是的,里面有讲到docker的安装:

curl -fsSL https://get.docker.com | bash
TongZiGang commented 5 months ago

这个命令因为docker被墙的原因导致无法使用,连接不上,我就是因为这个命令无法使用,找了很久没有找到解决办法才上来问的,不过现在我找到解决办法了,我安装了了个宝塔面板,然后通过宝塔面板安装上了

TongZiGang commented 5 months ago

在华为云国内的服务器中表现如下 root@hcss-ecs-768d:~# curl -fsSL https://get.docker.com |bash curl: (28) Failed to connect to get.docker.com port 443 after 130102 ms: Connection timed out

xubiaolin commented 5 months ago
export DOWNLOAD_URL="https://mirrors.tuna.tsinghua.edu.cn/docker-ce"
# 如您使用 curl
curl -fsSL https://get.docker.com/ | sh
RanHuang commented 2 months ago

今日(2024-09-11)Docker Hub已被解封~~

xubiaolin commented 1 month ago

Docker Hub已被解封~~,关闭issue