mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-03-04 23:27:17 +00:00
README.md: Make it clearer how to override UID and GID.
This commit is contained in:
parent
715d9be403
commit
d3e64ed56f
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue