mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Add explanation for timezone config on README (#510)
This commit is contained in:
parent
6941e63a2c
commit
08e8fcdc7c
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 New Issue
Block a user