Docker中日志时间如何修改? #2743
Answered
by
beefjerky331
wyfang
asked this question in
Support (简体中文)
-
现在docker中运行的asf似乎时区是0,和北京时间相差8小时,如何让其时间改为北京时间? 实际上,我的docker中看了下时间和外面时间都是正确的,但是asf程序的时间是错的:
|
Beta Was this translation helpful? Give feedback.
Answered by
beefjerky331
Jan 22, 2023
Replies: 1 comment
-
docker run时,加上环境变量参数 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wyfang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker run时,加上环境变量参数
-e TZ="Asia/Shanghai"
,因为docker默认时区就是0