rmondocker is a rocketmod docker image.
Note: this version supports only Unturned 3
Get the latest version of rmondocker from GitHub:
git clone https://github.com/KlaasM/rmondocker.git
Go into the rmondocker
directory and build the Dockerfile:
docker build -t rmondocker .
$ docker run --name some-server -d \
-v /host/path/unturned:/data/unturned \
-e STEAM_USERNAME="username" \
-e STEAM_PASSWORD="password" \
rmondocker
$ docker run --name some-server -d \
-v /host/path/unturned:/data/unturned \
-p 27016-27017:27016-27017/udp \
-e STEAM_USERNAME="username" \
-e STEAM_PASSWORD="password" \
-e SERVER_NAME="name"
rmondocker
$ docker run --name some-server -d \
-v /host/path/unturned:/data/unturned \
-e STEAM_USERNAME="username" \
-e STEAM_PASSWORD="password" \
-p 27016-27017:27016-27017/udp \
rmondocker
You can set the exposed ports by modifying the first port range to the two ports above the desired main port.
$ docker run --name some-server -d \
-v /host/path/unturned:/data/unturned \
-e STEAM_USERNAME="username" \
-e STEAM_PASSWORD="password" \
-e SERVER_NAME="name"
rmondocker
This option should give you the ability to share one persistent Unturned volume across Docker containers on the same host.
$ docker run --name some-server -it \
-v /host/path/unturned:/data/unturned
-e STEAM_USERNAME="username" \
-e STEAM_PASSWORD="password" \
-p 27016-27017:27016-27017/udp \
rocketondocker
You could also attach to the container directly:
docker attach [OPTIONS] CONTAINER
Show logs:
docker logs [OPTIONS] CONTAINER