mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-03-04 23:27:17 +00:00
docs: added recommendation against using SERVER_PORT
This commit is contained in:
parent
bbe930e552
commit
260cc7d180
1 changed files with 6 additions and 2 deletions
|
@ -747,9 +747,13 @@ The server name (e.g. for bungeecord) can be set like:
|
||||||
|
|
||||||
### Server port
|
### Server port
|
||||||
|
|
||||||
The server port can be set like:
|
> **WARNING:** only change this value if you know what you're doing. It is only needed when using host networking and it is rare that host networking should be used. Use `-p` port mappings instead.
|
||||||
|
|
||||||
docker run -d -e SERVER_PORT=25565 ...
|
If you must, the server port can be set like:
|
||||||
|
|
||||||
|
docker run -d -e SERVER_PORT=25566 ...
|
||||||
|
|
||||||
|
**however**, be sure to change your port mapping accordingly and be prepared for some features to break.
|
||||||
|
|
||||||
### Difficulty
|
### Difficulty
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue