From f48e441f359b7f957478509197e38cf5b1a1d58c Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Sun, 16 Apr 2023 19:30:47 +0800 Subject: [PATCH] Update docker.py --- appmanage/api/utils/docker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/appmanage/api/utils/docker.py b/appmanage/api/utils/docker.py index 5c9578e2..a7fda14b 100644 --- a/appmanage/api/utils/docker.py +++ b/appmanage/api/utils/docker.py @@ -19,7 +19,6 @@ def delete_images(app_id): # 卸载APP时同时删除dockercompose里面对应的镜像(根据docker-compose.yml 和 .env 获取) myLogger.info_logger("Delete images complete ...") - def get_process_perc(app_name, real_name): process_now = "pulling" @@ -75,7 +74,7 @@ def check_appid_include_rq(app_id): if app_id == None: code = const.ERROR_CLIENT_PARAM_BLANK message = "AppID is null" - elif re.match('^[a-zA-Z0-9]+_[a-z0-9]+$', app_id): + elif re.match('^[a-z0-9]+_[a-z0-9]+$', app_id): code = const.ERROR_CLIENT_PARAM_Format message = "APP name can only be composed of numbers and lowercase letters" elif not docker.check_appid_exist(app_id):