Update docker.py

This commit is contained in:
qiaofeng1227 2023-04-16 19:30:47 +08:00 committed by GitHub
parent b09ee9346e
commit f48e441f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):