修复一键docker(敲错命令了)
添加加速器
This commit is contained in:
yanyuwangluo 2024-07-07 10:18:04 +08:00
parent 9dfe5455c8
commit ccc28744ff
2 changed files with 29 additions and 12 deletions

View File

@ -25,7 +25,7 @@ if [ ! -n "$ql" ] ;then
else
echo "您设置的当前版本${ql}"
fi
DOCKER_IMG_NAME="yanyuwangluo/qinglong"
DOCKER_IMG_NAME="yanyu.icu/yanyuwangluo/qinglong"
JD_PATH=""
SHELL_FOLDER=$(pwd)
CONTAINER_NAME=""
@ -83,24 +83,28 @@ docker_install() {
exit 1
else
echo "安装 docker 环境..."
bash <(curl -sSL https://git.metauniverse-cn.com/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/docker.sh) --install-latested true --source https://download.docker.com --source-registry https://docker.m.daocloud.io --close-firewall
bash <(curl -sSL https://git.metauniverse-cn.com/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/docker.sh) --install-latested true --source https://mirrors.aliyun.com/docker-ce --source-registry https://registry.cn-hangzhou.aliyuncs.com --close-firewall
echo "安装 docker 环境...安装完成!"
echo "添加Docker镜像加速器..."
systemctl enable docker
systemctl start docker
echo "正在设置 Docker 镜像加速..."
mkdir -p /etc/docker
{"registry-mirrors": [
"https://yanyu.icu",
"https://yanyuge.free.hr"
]
} > /etc/docker/daemon.jsom
# 添加Docker镜像加速器设置
rm -rf /etc/docker/daemon.json
touch /etc/docker/daemon.json
echo '{
"registry-mirrors": [
"https://yanyu.icu",
"https://yanyuge.free.hr"
]
}' | sudo tee /etc/docker/daemon.json
echo "安装 docker 环境...安装完成!"
systemctl daemon-reload
systemctl restart docker
echo "设置 Docker 镜像加速...设置完成!"
fi
fi
}
docker_install
warn "目前因为 jsDelivr 的问题导致部分版本白屏。"
warn "Faker系列仓库一键安装配置小白回车到底一路默认选择"

View File

@ -26,7 +26,7 @@ else
echo "您设置的当前版本${ql}"
fi
echo -------------------------------
DOCKER_IMG_NAME="yanyuwangluo/qinglong"
DOCKER_IMG_NAME="yanyu.icu/yanyuwangluo/qinglong"
JD_PATH=""
SHELL_FOLDER=$(pwd)
CONTAINER_NAME=""
@ -82,10 +82,23 @@ docker_install() {
exit 1
else
echo "安装 docker 环境..."
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
bash <(curl -sSL https://git.metauniverse-cn.com/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/docker.sh) --install-latested true --source https://mirrors.aliyun.com/docker-ce --source-registry https://registry.cn-hangzhou.aliyuncs.com --close-firewall
echo "安装 docker 环境...安装完成!"
echo "添加Docker镜像加速器..."
# 添加Docker镜像加速器设置
rm -rf /etc/docker/daemon.json
touch /etc/docker/daemon.json
echo '{
"registry-mirrors": [
"https://yanyu.icu",
"https://yanyuge.free.hr"
]
}' | sudo tee /etc/docker/daemon.json
echo "安装 docker 环境...安装完成!"
systemctl enable docker
systemctl start docker
fi
fi
}