更新 docker.sh
This commit is contained in:
parent
c55447acb3
commit
ce38376005
@ -18,10 +18,10 @@ else
|
||||
echo "使用官方站点安装 Docker 和 Docker Compose。"
|
||||
fi
|
||||
|
||||
# 方法 1: 固定版本号(根据需要手动更新)
|
||||
# 方法 1: 固定版本号(根据需要手动更新)
|
||||
DOCKER_COMPOSE_VERSION="v2.23.0"
|
||||
|
||||
# 方法 2: 从阿里云镜像站点获取版本号(无需访问 GitHub)
|
||||
# 方法 2: 从阿里云镜像站点获取版本号(无需访问 GitHub)
|
||||
if [ "$USE_CHINA_MIRROR" = "yes" ]; then
|
||||
DOCKER_COMPOSE_VERSION=$(curl -s https://mirrors.aliyun.com/docker-ce/linux/static/stable-x86_64/ | grep -oP 'docker-compose-\K.*(?=-linux-x86_64)' | tail -1)
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user