diff --git a/appmanage/Dockerfile b/appmanage/Dockerfile index d6cf741e..ef28a3a5 100644 --- a/appmanage/Dockerfile +++ b/appmanage/Dockerfile @@ -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 diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index 192ecc13..d616af23 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -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: