Set log redirection from docker run command

i use this to preserve the docker logs functionality, it’s based on a docker command that exports to a file, and is basically that and a cron job.

one thing to keep in mind is that if the log file in docker gets large… like hundreds of mb, then it will start taking up a bit of resources… not bad tho… had the node running for a month and by the end it took about 2% avg of cpu resources.

1 Like