This is a follow up to #33778 and #35051.
Recap:
One of the requests is to see log timestamp according to a timezone, it was decided that it would be very risky to implement it on the server-side: https://github.com/moby/moby/pull/35051#issuecomment-334117784 and https://notes.pault.ag/its-all-relative/.
Instead, it is preferable to implement an option in docker container logs that converts the UTC timestamp into a given timzeone one.
I am using script for replace datetime from UTC to server time,
usage: docker logs -t container_name | docker-logs-localtime
https://gist.github.com/popstas/ffcf282492fd78389d1df2ab7f31052a
I am surprised this is not a bigger issue. tracking docker logs against other logs is painful. How hard could it be to get the logs to printout based on the container timezone. That's not to hard to implement via environment variable etc..
Most helpful comment
I am surprised this is not a bigger issue. tracking docker logs against other logs is painful. How hard could it be to get the logs to printout based on the container timezone. That's not to hard to implement via environment variable etc..