[minecraft-server] Updated README for new -e UID option (fixes #9)

This commit is contained in:
Geoff Bourne 2015-01-28 19:52:42 -06:00
parent 6ea862859b
commit 8319b336c7

View file

@ -44,12 +44,19 @@ to map a directory on your host machine to the container's `/data` directory, su
docker run -d -v /path/on/host:/data ...
When attached in this way you can stop the server, edit the configuration under your attached `/path/on/host`
When attached in this way you can stop the server, edit the configuration under your attached `/path/on/host`
and start the server again with `docker start CONTAINERID` to pick up the new configuration.
**NOTE**: The files in the attached directory will be owned by the host user with UID of 1000. Be sure
to create that user (such as `adduser --uid 1000 ...` if you don't already have one.
**NOTE**: By default, the files in the attached directory will be owned by the host user with UID of 1000.
You can use an different UID by passing the option:
-e UID=1000
replacing 1000 with a UID that is present on the host.
Here is one way to find the UID given a username:
grep some_host_user /etc/passwd|cut -d: -f3
## Versions
To use a different Minecraft version, pass the `VERSION` environment variable, which can have the value