Is there anyway to set timezone in Docker? #2949
Answered
by
JustArchi
zycboss
asked this question in
Support (English)
-
I tried to add "TZ= Asia/Shanghai" in the environment like other container, but it doesn't work in ASF. I just want the log information output in UTC+8 time stamp instead of default CST maybe? |
Beta Was this translation helpful? Give feedback.
Answered by
JustArchi
Jul 13, 2023
Replies: 1 comment 2 replies
-
Run docker container with |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
JustArchi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TZ
depends ontzdata
being available, which might not be the case.Run docker container with
-v /etc/timezone:/etc/timezone:ro
instead, will use your host timezone. If it still doesn't work try-v /etc/localtime:/etc/localtime:ro
instead.