This Docker image provides a Rust dedicated game server.
Facepunch releases a new game update for the Rust community on a monthly basis every first Thursday. Each update requires players and servers to update their versions of the game.
I will add some automation, so new images are build every first Thursday.
Docker Hub: https://hub.docker.com/r/pfeiffermax/rust-game-server
GitHub Repository: https://github.com/max-pfeiffer/rust-game-server-docker
You can append all server configuration options as commands when running RustDedicated
binary.
For instance run the Docker container like this:
docker run -it --publish 28015:28015/udp --publish 28016:28016/tcp pfeiffermax/rust-game-server:2024-06-23 +server.ip 0.0.0.0 +server.port 28015 +rcon.ip 0.0.0.0 +rcon.port 28016
With Docker Compose you have you can fire up your own Rust server in no-time. For this, just clone this repo (or just copy and paste the compose.yaml file to your machine) and run the server with Docker compose like this:
git clone https://github.com/max-pfeiffer/rust-game-server-docker.git
cd rust-game-server-docker/examples/docker-compose
docker compose up
You can also run the Rust server in the background with option -d
:
docker compose up -d
And show the logs, option -f
follows the logs:
docker compose logs -f
If you want to connect to Rust server console via RCON use the CLI client:
docker compose run -it --rm rcon-cli
[+] Creating 1/0
✔ Container rust-server Running 0.0s
Waiting commands for rust-server:28016 (or type :q to exit)
>
If you want to deploy to a production (Linux) server, have a look at the compose.yaml in the Docker Compose production example.