mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-01 11:47:16 +00:00
Generalize info about UID/GID (#3474)
This commit is contained in:
@@ -24,14 +24,9 @@ docker run -d -v /path/on/host:/data \
|
|||||||
|
|
||||||
## Running as alternate user/group ID
|
## Running as alternate user/group ID
|
||||||
|
|
||||||
By default, the container will switch to user ID 1000 and group ID 1000;
|
By default, the container will switch to and run the Minecraft server as user ID 1000 and group ID 1000; however, that can be changed by setting the environment variables `UID` and `GID`.
|
||||||
however, you can override those values by setting `UID` and/or `GID` as environmental entries, during the `docker run` command.
|
|
||||||
|
|
||||||
-e UID=1234
|
The startup will also skip user switching if the `--user`/`-u` argument is passed to `docker run` or `user` is set on the compose service.
|
||||||
-e GID=1234
|
|
||||||
|
|
||||||
The container will also skip user switching if the `--user`/`-u` argument
|
|
||||||
is passed to `docker run`.
|
|
||||||
|
|
||||||
## Extra Arguments
|
## Extra Arguments
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user