
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://img.shields.io/codacy/grade/ac35171da5ca4fc29cfcdd2f7c1f7833](https://hub.docker.com/r/cm2network/squad/) https://img.shields.io/docker/cloud/build/cm2network/squad.svg](https://hub.docker.com/r/cm2network/squad/) https://img.shields.io/docker/stars/cm2network/squad.svg](https://hub.docker.com/r/cm2network/squad/) https://img.shields.io/docker/pulls/cm2network/squad.svg](https://hub.docker.com/r/cm2network/squad/) https://img.shields.io/docker/image-size/cm2network/squad](https://microbadger.com/images/cm2network/squad) https://img.shields.io/***/747067734029893653]([***]
Dockerfile linksSquad is a tactical FPS that provides authentic combat experiences through teamwork, communication, and gameplay. It seeks to bridge the large gap between arcade shooter and military simulation. Large scale, combined arms combat, base building, and a great integrated VoIP system.
This Docker image contains the dedicated server of the game.
http://store.steampowered.com/app/393380/Squad/
Running on the host interface (recommended):
console$ docker run -d --net=host -v /home/steam/squad-dedicated/ --name=squad-dedicated cm2network/squad
Running using a bind mount for data persistence on container recreation:
console$ mkdir -p $(pwd)/squad-data $ chmod 777 $(pwd)/squad-data # Makes sure the directory is writeable by the unprivileged container user $ docker run -d --net=host -v $(pwd)/squad-data:/home/steam/squad-dedicated/ --name=squad-dedicated cm2network/squad
Running multiple instances (iterate PORT, QUERYPORT and RCONPORT):
console$ docker run -d --net=host -v /home/steam/squad-dedicated/ -e PORT=7788 -e QUERYPORT=27166 -e RCONPORT=21115 --name=squad-dedicated2 cm2network/squad
It's also recommended using "--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.
dockerfileversion: '3.9' services: squad: image: cm2network/squad container_name: squad restart: unless-stopped network_mode: "host" volumes: - /storage/squad/:/home/steam/squad-dedicated/ environment: - MULTIHOME="" #IF YOY HAVE MULTIPLE IP ADDRESSES, PUT THE ONE YOU WANT TO WORK HERE - PORT=7787 - QUERYPORT=27165 - BEACONPORT=15000 - RCONPORT=21114 - FIXEDMAXPLAYERS=100 - SERVER_NAME="Squad Dedicated Server"
Feel free to overwrite these environment variables, using -e (--env):
dockerfilePORT=7787 QUERYPORT=27165 BEACONPORT=15000 RCONPORT=21114 FIXEDMAXPLAYERS=80 FIXEDMAXTICKRATE=50 RANDOM=NONE MODS="()" SERVER_NAME="Squad Dedicated Server" MULTIHOME=x.x.x.x - use only if you have multiple IP addresses enter server IP instead of x.x.x.x
The config files can be edited using this command:
console$ docker exec -it squad-dedicated nano /home/steam/squad-dedicated/SquadGame/ServerConfig/Server.cfg
If you want to learn more about configuring a Squad server check this documentation.
Add each id to the MODS environment variable, for example MODS="(13371337 12341234 1111111)"
MODS must be a bash array
(mod1id mod2id mod3id)where each mod id is separated by a space and inclosed in brackets
You can get the mod id from the workshop url or by installing it locally and lookup the numeric folder name at <root_steam_folder>/steamapps/workshop/content/393380.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务