Change the way Docker start Glances

This commit is contained in:
nicolargo 2025-06-29 13:40:52 +02:00
parent 28e82eb237
commit 813785ff82
2 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ EXPOSE 61209 61208
# Define default command.
WORKDIR /app
CMD /venv/bin/python3 -m glances $GLANCES_OPT
CMD ["/bin/sh", "-c", "/venv/bin/python3 -m glances ${GLANCES_OPT}"]
################################################################################
# RELEASE: minimal
@ -144,4 +144,4 @@ COPY ./docker-files/docker-logger.json /app
ENV LOG_CFG=/app/docker-logger.json
WORKDIR /app
CMD /venv/bin/python3 -m glances $GLANCES_OPT
CMD ["/bin/sh", "-c", "/venv/bin/python3 -m glances ${GLANCES_OPT}"]

View File

@ -102,7 +102,7 @@ EXPOSE 61209 61208
# Define default command.
WORKDIR /app
CMD /venv/bin/python3 -m glances $GLANCES_OPT
CMD ["/bin/sh", "-c", "/venv/bin/python3 -m glances ${GLANCES_OPT}"]
################################################################################
# RELEASE: minimal
@ -134,4 +134,4 @@ COPY ./docker-files/docker-logger.json /app
ENV LOG_CFG=/app/docker-logger.json
WORKDIR /app
CMD /venv/bin/python3 -m glances $GLANCES_OPT
CMD ["/bin/sh", "-c", "/venv/bin/python3 -m glances ${GLANCES_OPT}"]