How to set the timezone for docker container
This article only applies to Atlassian's docker. Learn more about the Atlassian docker here.
目的
The timezone value in Atlassian docker container by default is GMT, however, it is possible to alter this default by passing an additional parameter to the container with -e TZ=<TIMEZONE>.
ソリューション
Here is the Confluence example setting:
docker run \
--name="confluence" -d \
-p 8090:8090 \
-p 8091:8091 \
-v ~/confluence-home/confluence-docker:/var/atlassian/application-data/confluence \
-e TZ=Australia/Brisbane \
atlassian/confluence-server \
Normally this command is run as one line.
The List of TZ Database Time Zones documentation on Wikipedia contains further information on the different Timezones that can be set
最終更新日: 2019 年 10 月 3 日
Powered by Confluence and Scroll Viewport.