[REQUEST Docker image] Output log to stdout #2128

This commit is contained in:
nicolargo 2022-09-24 16:50:37 +02:00
parent ef9a64cdd0
commit 922610f837

View File

@ -114,6 +114,10 @@ COPY . /glances
# EXPOSE PORT (XMLRPC / WebUI)
EXPOSE 61209 61208
# Forward access and error logs to Docker's log collector
RUN ln -sf /dev/stdout /tmp/glances-root.log \
&& ln -sf /dev/stderr /var/log/error.log
WORKDIR /glances
# Define default command.