mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
Merge pull request #312 from feranwq/patch-1
修复(docker_start.sh): 兼容 docker compose
This commit is contained in:
commit
97d34e18f1
@ -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 命令创建容器"
|
||||
|
Loading…
Reference in New Issue
Block a user