From 8319b336c7b0ff1c1d3e772f0ce4dfaafff4d6ff Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Wed, 28 Jan 2015 19:52:42 -0600 Subject: [PATCH] [minecraft-server] Updated README for new -e UID option (fixes #9) --- minecraft-server/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/minecraft-server/README.md b/minecraft-server/README.md index 9c8d87d1..e9e88221 100644 --- a/minecraft-server/README.md +++ b/minecraft-server/README.md @@ -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