From 08e8fcdc7cceaa2f1696a373e0da944b1289edff Mon Sep 17 00:00:00 2001 From: Gabriel Oliveira Date: Tue, 28 Apr 2020 20:57:55 -0300 Subject: [PATCH] Add explanation for timezone config on README (#510) --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 0ff7c610..49751e05 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,24 @@ such as docker run -d -it -e EULA=TRUE -p 25565:25565 --name mc itzg/minecraft-server +## Timezone Configuration + +You can configure the timezone to match yours by setting the `TZ` environment variable: + + -e TZ=Europe/London + +such as: + + docker run -d -it -e TZ=Europe/London -p 25565:25565 --name mc itzg/minecraft-server + +Or mounting `/etc/timezone` as readonly (not supported on Windows): + + -v /etc/timezone:/etc/timezone:ro + +such as: + + docker run -d -it -v /etc/timezone:/etc/timezone:ro -p 25565:25565 --name mc itzg/minecraft-server + ## Attaching data directory to host filesystem In order to readily access the Minecraft data, use the `-v` argument