fix: 增加检查docker是否包含子命令compose. 如果没有compose子命令, 提示用户升级docker

This commit is contained in:
Olia Lisa
2026-06-09 22:45:10 +08:00
parent 97cd1e6b70
commit 9dfd39e67b
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -164,6 +164,7 @@ main(){
1)
# 一键部署
install
check_docker_compose
create_config
port_manage allow $(get_listen_port "$CONFIG_FILE") # 开放端口
run
@@ -180,6 +181,7 @@ main(){
;;
4)
# 启动
check_docker_compose
check_config_file "$CONFIG_FILE"
port_manage allow $(get_listen_port "$CONFIG_FILE") # 开放端口
run