Merge pull request #312 from feranwq/patch-1

修复(docker_start.sh): 兼容 docker compose
This commit is contained in:
Sitoi 2024-03-11 09:29:20 +08:00 committed by GitHub
commit 97d34e18f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ if [ $? -ne 0 ];then
echo "未安装 docker ,请先安装 docker 再运行脚本。"
else
echo "docker 环境存在,检测 docker-compose 环境是否安装..."
docker-compose --version
docker-compose --version || docker compose version && alias docker-compose="docker compose"
if [ $? -ne 0 ];then
echo "未安装 docker-compose将使用 docker 命令启动容器..."
echo "开始通过 docker 命令创建容器"