Update to v7.57.0

This commit is contained in:
aapanel.com
2025-11-21 17:19:27 +08:00
parent b6e4ab8b35
commit eb21fc65dd
1241 changed files with 22299 additions and 5531 deletions
+5 -1
View File
@@ -314,7 +314,11 @@ class main(dockerBase):
if not data:
return public.return_message(-1, 0, public.lang("This template was not found!"))
if os.path.exists(data['path']):
os.remove(data['path'])
# 删除模板文件 目录不处理
try:
os.remove(data['path'])
except:
pass
get.id = get.template_id
+2 -2
View File
@@ -1205,12 +1205,12 @@ class main(dockerBase):
if key not in data.keys():
data[str(port["PrivatePort"]) + "/" + port["Type"]] = [{
"HostIp": port["IP"],
"HostPort": str(port["PublicPort"])
"HostPort": str(port.get("PublicPort", ""))
}] if "IP" in port else None
else:
data[str(port["PrivatePort"]) + "/" + port["Type"]].append({
"HostIp": port["IP"],
"HostPort": str(port["PublicPort"])
"HostPort": str(port.get("PublicPort", ""))
})
return data
+2 -1
View File
@@ -292,7 +292,8 @@ class main(dockerBase):
return public.returnMsg(True, str(res))
except:
public.print_log(public.get_error_info())
error_info = public.get_error_info()
return public.returnMsg(False, public.lang("Login test failed! Reason: {}", error_info))
# except docker.errors.APIError as e:
# if "authentication required" in str(e):
# return public.returnMsg(False, public.lang("Login test failed! Reason: May be account password error, please check!"))
+1 -1
View File
@@ -792,7 +792,7 @@ fi
return public.return_message(0, 0, public.lang("The installation task has been added to the queue!"))
@staticmethod
def uninstall_status(self, get):
"""
检测docker是否可以卸载