SERVER_OPTS - Hetsh/docker-stationeers GitHub Wiki

SERVER_OPTS

Due to the used shell variation of ENTRYPOINT, it is not possible to add CLI parameters by simply appending them when launching the container, e.g.:

docker run ... hetsh/stationeers -password=<your_password>

Results in the following command run in the docker container:

"/bin/sh -c 'exec \"$APP_DIR/rocketstation_DedicatedServer.x86_64\" ... $SERVER_OPTS' -password=<your_password>"

-password=<your_password> is recognized as shell parameter and not as stationeers server parameter. But the shell variation of ENTRYPOINT offers many advantages, this is the reason why the environment variable SERVER_OPTS was introduced. As seen above, it expands inside the shell command and is recognized as parameter of the stationeers server. It allows specifying arbitrary parameters and can be easily changed:

docker run --env SERVER_OPTS="-password=<your_password> ..."