new image

This commit is contained in:
qiaofeng1227 2023-05-19 13:54:47 +08:00
parent ce903711bc
commit fd04682cf4
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
# Install supervisords
# Install supervisord
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh

View File

@ -332,7 +332,7 @@ def get_apps_from_compose():
myLogger.info_logger("ok")
if status == "exited":
cmd = "docker ps -f -a name=" + customer_name + " --format {{.Names}}#{{.Status}}|grep Exited"
cmd = "docker ps -a -f name=" + customer_name + " --format {{.Names}}#{{.Status}}|grep Exited"
result = shell_execute.execute_command_output_all(cmd)["result"].rstrip('\n')
container = result.split("#Exited")[0]
if container != customer_name: