mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 18:30:23 +08:00
Update docker.py
This commit is contained in:
parent
99a5902c5a
commit
4d5a699ccf
@ -15,10 +15,10 @@ def get_process_perc(app_name):
|
||||
if int(code) == 0 and output["result"] != "":
|
||||
process_now = "starting"
|
||||
|
||||
output = shell_execute.execute_command_output_all("sudo docker compose ls |grep " + app_name)
|
||||
output = shell_execute.execute_command_output_all("docker inspect " + app_name + "|grep error")
|
||||
code = output["code"]
|
||||
if int(code) == 0 and output["result"] != "":
|
||||
process_now = "running"
|
||||
if int(code) == 0 and output["result"] == "":
|
||||
process_now = "Initializing"
|
||||
|
||||
return process_now
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user