A base Docker image for Valve's SteamCMD based on Debian (bookworm-slim).
| Docker Tag | Version | Platform | Description |
|---|---|---|---|
| latest | 1.1 | amd64 | The default and the most bug-free image. |
| min | 1.1 | amd64 | Minimal version that doesn't contain the language locale fix and, thus, is about 20% smaller. |
Introduction • Usage • Common Issues • Manual build • See also • License
This image can be considered a fork of CM2Walki's steamcmd image with some modifications and fixes:
- A default
gameserverfolder (located in/home/steam) has been added to keep all server files instead of using a different folder for each game. - An issue involving the
steamclient.solibrary has been fixed by creating a symbolic link to the corresponding file. - An issue concerning the
setlocalefunction has been fixed by installing and configuring the missing package. - The image doesn't use a volume by default.
Whilst this image should be used as a base image for any supported SteamCMD game server, it can also be used directly for testing purposes.
Example 1:
Create a new container and get access to the SteamCMD console:
docker run --name steamcmd -it k4rian/steamcmdExample 2:
Create a ephemeral container and use SteamCMD to download the Left 4 Dead 2 Dedicated Server files in the current directory then quit:
docker run --rm \
-v $(pwd):/home/steam/gameserver \
k4rian/steamcmd \
+force_install_dir /home/steam/gameserver \
+login anonymous \
+app_update 222860 \
+quitSee COMMON_ISSUES.md
Requirements:
— Docker >= 18.03.1
— Git (optional)
Like any Docker image the building process is pretty straightforward:
- Clone (or download) the GitHub repository to an empty folder on your local machine:
git clone https://github.com/K4rian/docker-steamcmd.git .- Then run the following commands inside the newly created folder:
docker build --no-cache -f Dockerfile -t k4rian/steamcmd:latest .docker build --no-cache -f min.Dockerfile -t k4rian/steamcmd:min .- docker-srcds — A Docker image used to run any Source Dedicated Server games (Counter-Strike: Source, Left 4 Dead 1/2, Team Fortress 2, etc.) which use this image as base.