[REQUEST Docker image] Output log to stdout #2128 (for debian)

This commit is contained in:
nicolargo 2022-09-24 18:57:19 +02:00
parent 922610f837
commit c5246197da

View File

@ -113,6 +113,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.