How to set the timezone for docker container

Java 環境のタイムゾーンを設定する方法

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

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 \

(info) 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


説明
How to set the timezone for Confluence docker container
製品Confluence, Jira
最終更新日: 2019 年 10 月 3 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.