Answer the question
In order to leave comments, you need to log in
Docker logs, write/read to console output(STDOUT)?
There is an application in a docker container that writes logs to a file.
I want the contents of this file to be visible when docker logs is called.
Found how to redirect docker out to a file, but vice versa?
https://github.com/moby/moby/issues/19616#issuecom...
How do I make docker read the file when I call docker logs or vice versa how to write the file's capacity to docker logs (output) all the time?
Answer the question
In order to leave comments, you need to log in
Map the desired file inside docker to stdout ln -sf /dev/stdout /var/log/nginx/access.log
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question