Skip to content

A base Docker image for Valve's SteamCMD.

License

K4rian/docker-steamcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-steamcmd logo

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.

IntroductionUsageCommon IssuesManual buildSee alsoLicense

Introduction

This image can be considered a fork of CM2Walki's steamcmd image with some modifications and fixes:

  • A default gameserver folder (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.so library has been fixed by creating a symbolic link to the corresponding file.
  • An issue concerning the setlocale function has been fixed by installing and configuring the missing package.
  • The image doesn't use a volume by default.

Usage

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/steamcmd

Example 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 \
  +quit

Common Issues

See COMMON_ISSUES.md

Manual build

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 .

See also

  • 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.

License

MIT

About

A base Docker image for Valve's SteamCMD.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published