SERVER_RUNNER is expanded when exec'ed (#4183)

This commit is contained in:
Geoff Bourne
2026-07-19 21:35:08 -05:00
committed by GitHub
parent 1e77b81b32
commit a3bb7bff34
2 changed files with 7 additions and 4 deletions
+3
View File
@@ -206,6 +206,9 @@ If you are using a host-attached data directory, then you can have the image set
By default, the image finishes startup by exec'ing [mc-server-runner](https://github.com/itzg/mc-server-runner) to run the Minecraft server itself. This can be replaced by setting the environment variable `SERVER_RUNNER`. The arguments passed will start with ones specific to mc-server-runner, followed by `--`, and then the actual `java -jar` arguments or equivalent server entry script, such as `run.sh` for Forge.
> [!TIP]
> The `SERVER_RUNNER` variable is expanded when passed to `exec` so that `mc-server-runner` can be wrapped by another executable that is mounted into the container.
## Enable Flare Flags
To enable the JVM flags required to fully support the [Flare profiling suite](https://blog.airplane.gg/flare), set the following variable: