This repository provides everything you need to run steamcmd in Docker.
For convenience it contains the following server files:
The main hurdle of running steamcmd in Docker is that steamcmd supports
multiple servers.
Compared to other steamcmd docker images, this one exposes a volume named
config as well as an environment variable to tell steamcmd which server file
to use. This means:
To run the container with the default JC2:MP server file:
docker run -td -p 7777:7777 -p 27015:27015 -p 20560:20560 ghetto/steamcmd:latest
The ghetto/steamcmd container can also be run with custom config and sh files. This allows
you to start container and have the update and server start process be completely automated.
docker run -td -p 7777:7777 -p 27015:27015 -p 20560:20560 -v /myscripts:/config -e SCRIPT=jc2.config -e INIT=start-jc2.sh ghetto/steamcmd:latest
The ghetto/steamcmd container can also be run with login credentials to download
games that require a login.
docker run -td -p 7777:7777 -p 27015:27015 -p 20560:20560 -v /myscripts:/config -e USERNAME=gaben -e PASSWORD=valve -e SCRIPT=starbound.config -e INIT=start-starbound.sh ghetto/steamcmd:latest
/config => Directory containing server scriptsghetto/steamcmd
The docker image with steamcmd. Built from the accursoft/micro-debian
Debian micro image.
Just Cause 2: Multiplayer server file example (no login)
Starbound server file example (requires login)
https://registry.hub.docker.com/u/ghetto/steamcmd/
docker build -t ghetto/steamcmd .
-p flag.Content type
Image
Digest
Size
47.3 MB
Last updated
about 10 years ago
docker pull ghetto/steamcmd