mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 14:24:28 +00:00
Add explanation for timezone config on README (#510)
This commit is contained in:
parent
6941e63a2c
commit
08e8fcdc7c
1 changed files with 18 additions and 0 deletions
18
README.md
18
README.md
|
@ -93,6 +93,24 @@ such as
|
||||||
|
|
||||||
docker run -d -it -e EULA=TRUE -p 25565:25565 --name mc itzg/minecraft-server
|
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
|
## Attaching data directory to host filesystem
|
||||||
|
|
||||||
In order to readily access the Minecraft data, use the `-v` argument
|
In order to readily access the Minecraft data, use the `-v` argument
|
||||||
|
|
Loading…
Reference in a new issue