cm2network/csgo🚨 Attention All Contributors & Users 🚨
Due to the release of Counter-Strike 2, this repository is now archived and will no longer be actively maintained. The Docker Hub images will still be available, however they'll no longer receive updates.
🔗 We're Moving! 🔗
👉 Development continues on the CS2 Repository 👈
Please make sure to star ⭐ the new repository and submit any new issues, pull requests, or contributions there.
Regards,
Walentin 'Walki' Lamonos
metamod (bullseye/Dockerfile)sourcemod (bullseye/Dockerfile)Counter-Strike: Global Offensive (CS: GO) expands upon the team-based action gameplay that it pioneered when it was launched 19 years ago. CS: GO features new maps, characters, weapons, and game modes, and delivers updated versions of the classic CS content (de_dust2, etc.). This Docker image contains the dedicated server of the game.
CS:GO
Running on the host interface (recommended):
console$ docker run -d --net=host --name=csgo-dedicated -e SRCDS_TOKEN={YOURTOKEN} cm2network/csgo
Running using a bind mount for data persistence on container recreation:
console$ mkdir -p $(pwd)/csgo-data $ chmod 777 $(pwd)/csgo-data # Makes sure the directory is writeable by the unprivileged container user $ docker run -d --net=host -v $(pwd)/csgo-data:/home/steam/csgo-dedicated/ --name=csgo-dedicated -e SRCDS_TOKEN={YOURTOKEN} cm2network/csgo
Running multiple instances (increment SRCDS_PORT and SRCDS_TV_PORT):
console$ docker run -d --net=host --name=csgo-dedicated2 -e SRCDS_PORT=27016 -e SRCDS_TV_PORT=27021 -e SRCDS_TOKEN={YOURTOKEN} cm2network/csgo
SRCDS_TOKEN is required to be listed & reachable. Generate one here using AppID 730:
[]
SRCDS_WORKSHOP_AUTHKEY is required to use workshop features:
[]
It's also recommended to use "--cpuset-cpus=" to limit the game server to a specific core & thread.
The container will automatically update the game on startup, so if there is a game update just restart the container.
Feel free to overwrite these environment variables, using -e (--env):
dockerfileSRCDS_TOKEN="changeme" (value is is required to be listed & reachable, retrieve token here (AppID 730): [***] SRCDS_RCONPW="changeme" (value can be overwritten by csgo/cfg/server.cfg) SRCDS_PW="changeme" (value can be overwritten by csgo/cfg/server.cfg) SRCDS_PORT=27015 SRCDS_TV_PORT=27020 SRCDS_NET_PUBLIC_ADDRESS="0" (public facing ip, useful for local network setups) SRCDS_IP="0" (local ip to bind) SRCDS_LAN="0" SRCDS_FPSMAX=300 SRCDS_TICKRATE=128 SRCDS_MAXPLAYERS=14 SRCDS_STARTMAP="de_dust2" SRCDS_REGION=3 SRCDS_MAPGROUP="mg_active" SRCDS_GAMETYPE=0 SRCDS_GAMEMODE=1 SRCDS_HOSTNAME="New CSGO Server" (first launch only) SRCDS_WORKSHOP_START_MAP=0 SRCDS_HOST_WORKSHOP_COLLECTION=0 SRCDS_WORKSHOP_AUTHKEY="" (required to use host_workshop_map) ADDITIONAL_ARGS="" (Pass additional arguments to srcds. Make sure to escape correctly!)
The image contains a copy of the official ESL config files from here. You can edit the config using this command:
console$ docker exec -it csgo-dedicated nano /home/steam/csgo-dedicated/csgo/cfg/server.cfg
If you want to learn more about configuring a CS:GO server check this documentation.
The csgo images come in three flavors, each designed for a specific use case.
csgo:latestThis is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is a bare-minimum CSGO dedicated server containing no 3rd party plugins.
csgo:metamodThis is a specialized image. It contains the plugin environment Metamod:Source which can be found in the addons directory. You can find additional plugins here.
csgo:sourcemodThis is another specialized image. It contains both Metamod:Source and the popular server plugin SourceMod which can be found in the addons directory. SourceMod supports a wide variety of additional plugins that can be found here.
![Contributors Display]([***]
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务