mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
README.md: Make it clearer how to override UID and GID.
This commit is contained in:
parent
715d9be403
commit
d3e64ed56f
@ -730,7 +730,11 @@ Allows users to use flight on your server while in Survival mode, if they have a
|
||||
### Running as alternate user/group ID
|
||||
|
||||
By default, the container will switch to user ID 1000 and group ID 1000;
|
||||
however, you can override those values by setting `UID` and `GID`, respectively.
|
||||
however, you can override those values by setting `UID` and/or `GID` as environmental entries, during the `docker run` command.
|
||||
|
||||
-e UID=1234
|
||||
-e GID=1234
|
||||
|
||||
The container will also skip user switching if the `--user`/`-u` argument
|
||||
is passed to `docker run`.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user