Sign inSign up

inanimate/steamcmd-play

By inanimate

Updated about 11 years ago

A collection of ready-to-launch dedicated server images for various popular Source games.

Image
6

2.7K

inanimate/steamcmd-play repository overview

It's play time!

This repository aims to provide ready to play dedicated server docker images for the most popular Valve games. A mere docker run -d -p 27000-27015:27000-27015/udp -p 27015:27015 inanimate/steamcmd-play:css will launch a Counter-Strike: Source dedicated server ready for you and your friends to join.

What's Available?

The following table shows a list of the currently generated images. The first two column's are all you need to know to pick your Friday Night Delight :)

Game NameTag NameEngineLaunch NameApp ID
Counter-Strike: Global OffensivecsgoSourcecsgo740
Counter-Strike: SourcecssSourcecstrike232330
Day of Defeat: SourcedodsSourcedod232290
Garry's ModgarrysmodSourcegarrysmod4020
Half-Life 2: Deathmatchhl2dmSourcehl2mp232370
Half-Life Deathmatch: SourcehldmsSourcehl1mp255470
Left 4 Dead 2l4d2Sourceleft4dead2222860
Left 4 Deadl4dSourceleft4dead222840
Team Fortress 2tf2Sourcetf232250

All you need to do is select the game you want to host, find it's associated tag, and:

docker run -d -p 27000-27015:27000-27015/udp -p 27015:27015 inanimate/steamcmd-play:<tag>

The container will then launch, the dedicated server will start, and you're ready to join up, suit up, and fight!

Useful LAN options

Because srcds is pretty awesome, you can easily pass command line options to the server daemon. Here are a few useful examples:

docker run -p 27000-27015:27000-27015/udp -p 27015:27015 -d inanimate/steamcmd-play:css +sv_lan 1 +map de_dust2 +rcon_password awesomepassword
docker run -p 27000-27015:27000-27015/udp -p 27015:27015 -d inanimate/steamcmd-play:css +sv_lan 1 +map de_dust2 +rcon_password lolcakes +maxplayers 6 +hostname "SuperCool CSS Server"

Keep in mind when you define your own options, they replace the default CMD I configured for you in the Dockerfile!

How is this done?

Basically, I generate a base container (with steamcmd) that specific game Dockerfile's inherit from. I then set the necessary variables in each game specific Dockerfile and an image gets built downloading the necessary data from Steam. After that, I ensure to set a baseline config by providing the bare minimum options via the proper launch command to ensure the server is ready to join on container launch.

Tag summary

Content type

Image

Digest

sha256:9064ab7bf

Size

82.5 MB

Last updated

about 11 years ago

docker pull inanimate/steamcmd-play