I am deploying a Nginx
container and in the standard Dockerfile
logs are being redirected to container logs with these commands
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
If I remove above mentioned commands then logs are written to access.log
and error.log
files as expected.
How can I keep the logs in the files as well as send them to container logs ?