Skip to content

Commit b85c2ee

Browse files
committed
[add] how to set timezone of docker container
1 parent 5e4d600 commit b85c2ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker.md

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Container | Object
2626

2727

2828
## Command
29+
> docker容器默认时区为UTC,若要更改可通过在服务器运行命令
30+
>
31+
> `echo "Asia/shanghai" > /etc/timezone;` 然后重启容器即可
2932
3033
### 命令帮助
3134

0 commit comments

Comments
 (0)