Problem with exporting logs from nginx running on Docker #374
dawidpstrak
started this conversation in
General
Replies: 1 comment
-
I fixed it with RUN unlink /var/log/nginx/access.log
RUN unlink /var/log/nginx/error.log in my nginx Dockerfile. This might not work if you have an existing volume for this files. In that case, delete the volume if possible and try again. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have problem trying to mount access.log and error.log from nginx running on Docker. There is also problem with reading these files using
cat
command. These logs files of nginx running on docker seems to be not real files to read but just symlinks that pass logs to docker stdout so we can read these logs bydocker logs nginx-container
.Beta Was this translation helpful? Give feedback.
All reactions