You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.
Saving the logs to a file completely sidesteps Docker's logging functionality and renders it useless. i.e., running docker logs [redis_container_id] with the current image will return no output.
In order to allow Docker's log-capturing to work with the image, we need to output to stdout/stderr. Replacing logfile [logpath] in redis.conf with logfile "" fixes this problem. However, since this is a change in functionality, I'm opening an issue first to make sure we're all OK with this change.
The text was updated successfully, but these errors were encountered:
I believe it's technically possible to log to both, but logging to STDOUT is both sufficient and the generally accepted practice, so it is a good/valid suggestion.
When in docker in my personal apps, I like logging to stdout. Many of the node launchers (pm2, docker, etc) expect this pattern and console redirection or tee'ing are not hard. If in doubt, you could do stdout by default and offer an env variable to tell the container startup script to log to a file instead...
Saving the logs to a file completely sidesteps Docker's logging functionality and renders it useless. i.e., running
docker logs [redis_container_id]
with the current image will return no output.In order to allow Docker's log-capturing to work with the image, we need to output to stdout/stderr. Replacing
logfile [logpath]
in redis.conf withlogfile ""
fixes this problem. However, since this is a change in functionality, I'm opening an issue first to make sure we're all OK with this change.The text was updated successfully, but these errors were encountered: