[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

@ -47,8 +47,15 @@ to map a directory on your host machine to the container's `/data` directory, su
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. 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 **NOTE**: By default, the files in the attached directory will be owned by the host user with UID of 1000.
to create that user (such as `adduser --uid 1000 ...` if you don't already have one. 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 ## Versions