Hi teams,
Much thanks to provide such great docker images.
I found that most container settings all have -e TZ=Europe/London.
Is it possible to support read timezone from /etc/localtime for Linux platform ?
To support this, we can just use -v /etc/localtime:/etc/localtime:ro to assign the localtime with Timezone.
It is a very convenient way to configure the timezone, but it has a big downside:
It is only working on Linux hosts. Even macOS hosts, which are unix based, do not support this mechanism because /etc/timezone is not accessible.
I prefer to pass the TZ variable and use this mechanism in my own image.
By checking the log of the container with the timestamp, some container will display correct time with my local time, but some container still just display the UTC+0 time.