Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker版本的容器时间错误,默认GMT+0且没法修改 #61

Open
BladPit opened this issue Jun 9, 2022 · 1 comment
Open

docker版本的容器时间错误,默认GMT+0且没法修改 #61

BladPit opened this issue Jun 9, 2022 · 1 comment

Comments

@BladPit
Copy link

BladPit commented Jun 9, 2022

功能正常,但看了下日志,发送时间跟实际时间差了8小时,估计是用了GMT+0的时区。

但创建容器时使用环境变量TZ=Asia/Shanghai发现没有用

然后准备进容器里面修改,发现容器没有内置bin/sh文件,进不去命令行

不知道大家用docker版本有没有这个问题,怎么解决呢?

@ansemz
Copy link

ansemz commented Jul 5, 2022

docker run -v /etc/localtime:/etc/localtime …………

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants