mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 14:24:28 +00:00
[minecraft-server] Updated README for new -e UID option (fixes #9)
This commit is contained in:
parent
6ea862859b
commit
8319b336c7
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue