cm2network/steamcmd Docker Image
包含Valve的SteamCMD二进制文件的最小化镜像,用于管理和安装Steam游戏服务器。
Supported tags and respective Dockerfile links
- https://github.com/CM2Walki/steamcmd/blob/master/trixie/Dockerfile
- https://github.com/CM2Walki/steamcmd/blob/master/trixie/Dockerfile
- https://github.com/CM2Walki/steamcmd/blob/master/bookworm/Dockerfile
- https://github.com/CM2Walki/steamcmd/blob/master/bookworm/Dockerfile
- https://github.com/CM2Walki/steamcmd/blob/master/bullseye/Dockerfile
- https://github.com/CM2Walki/steamcmd/blob/master/bullseye/Dockerfile
What is SteamCMD?
The Steam Console Client or SteamCMD is a command-line version of the Steam client. Its primary use is to install and update various dedicated servers available on Steam using a command-line interface. It works with games that use the SteamPipe content system. All games have been migrated from the deprecated HLDSUpdateTool to SteamCMD. This image can be used as a base image for Steam-based dedicated servers (Source: developer.valvesoftware.com).
How to use this image
Whilst it's recommended to use this image as a base image of other game servers, you can also run it in an interactive shell using the following command:
console$ docker run -it --name=steamcmd cm2network/steamcmd bash $ ./steamcmd.sh +force_install_dir /home/steam/squad-dedicated +login anonymous +app_update 403240 +quit
This can prove useful if you are just looking to test a certain game server installation.
Running with named volumes:
console$ docker volume create steamcmd_login_volume # Optional: Location of login session $ docker volume create steamcmd_volume # Optional: Location of SteamCMD installation $ docker run -it \ -v "steamcmd_login_volume:/home/steam/Steam" \ -v "steamcmd_volume:/home/steam/steamcmd" \ cm2network/steamcmd bash
This setup is necessary if you have to download a non-anonymous appID or upload a steampipe build. For an example check out: https://hub.docker.com/r/cm2network/steampipe/
Configuration
This image includes the nano text editor for convenience.
The steamcmd.sh can be found in the following directory: /home/steam/steamcmd
Examples
Images utilizing this base image:
| Image | Pulls | Build Status |
|---|---|---|
| https://hub.docker.com/r/***/ | ||
| https://hub.docker.com/r/cm2network/tf2/ | ||
| https://hub.docker.com/r/cm2network/squad/ | ||
| https://hub.docker.com/r/cm2network/mordhau/ | ||
| https://hub.docker.com/r/cm2network/holdfastnaw/ | ||
| https://hub.docker.com/r/cm2network/valheim/ | ||
| https://hub.docker.com/r/cm2network/steampipe/ | ||
| https://hub.docker.com/r/cm2network/csgo/ | Repository Archived |
Image Variants
The steamcmd images come in two flavors, each designed for a specific use case.
steamcmd:latest
This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used as the base to build other images off of. This image's default user is steam, any command executed in a higher layer Dockerfile will therefor be executed as that user.
steamcmd:root
This is a specialized image. This image's default user is root. If you need to install additional packages for you game server and do not want to create excess layers, then this is the right choice.
Note: Running the steamcmd.sh as root will fail because the owner is the user steam, either swap the active user using su steam or use chown to change the ownership of the directory.
Contributors
cm2network 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 steamcmd 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务