
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
The https://linuxserver.io team brings you another container release.
Find us at:
Modmanager is a centralised tool for downloading and updating docker mods for all your other Linuxserver containers.
We utilise the docker manifest for multi-platform awareness. More information is available from docker https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list and our announcement https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/.
Simply pulling lscr.io/linuxserver/modmanager:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
The architectures supported by this image are:
| Architecture | Available | Tag |
|---|---|---|
| x86-64 | ✅ | amd64-<version tag> |
| arm64 | ✅ | arm64v8-<version tag> |
You can specify mods to download via the DOCKER_MODS environment variable like any other container, or allow discovery through docker by mounting the docker socket into the container (or configuring a suitable alternative endpoint via the built-in DOCKER_HOST environment variable). Whichever option you choose the appropriate DOCKER_MODS environment variable must still be present on the containers that need to install them.
The Modmanager container will download all needed mods on startup and then check for updates every 6 hours; if you're using docker discovery it will automatically pick up any new mods.
You can then mount your /modcache path into any other Linuxserver container and they will pull their mods from there rather than downloading them each time.
If a mod requires additional packages to be installed, each container will still need to download them each time it is recreated.
Note that the Modmanager container itself does not support applying mods or custom files/services.
Modmanager is only supported for use with Linuxserver images built after 2025-01-01, while it may work with 3rd party containers using our images as a base we will not provide support for them.
Mapping docker.sock is a potential security liability because docker has root access on the host and any process that has full access to docker.sock would therefore also have root access on the host. The docker API has no built-in way to set limitations on access, however, you can use a proxy for docker.sock via a solution like https://github.com/linuxserver/docker-socket-proxy, which adds the ability to limit API access to specific endpoints.
[!NOTE] Make sure you fully understand what you're doing before you try and set this up as there are lots of ways it can go wrong if you're just guessing.
Modmanager can query & download mods for remote hosts, as well as the one on which it is installed. At a very basic level if you're just using the DOCKER_MODS env and not docker discovery, simply mount the /modcache folder on your remote host(s), ensuring it is mapped for all participating containers.
If you are using docker discovery, our only supported means for connecting to remote hosts is https://github.com/linuxserver/docker-socket-proxy/. Run an instance on each remote host:
[!WARNING] DO NOT expose a socket proxy to your LAN if it allows any write operations (
POST=1,ALLOW_RESTART=1, etc) or exposes any API elements that are not absolutely necessary. NEVER expose a socket proxy to your WAN.
ymlmodmanager-dockerproxy: image: lscr.io/linuxserver/socket-proxy:latest container_name: modmanager-dockerproxy environment: - CONTAINERS=1 - POST=0 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro tmpfs: - /run ports: - 2375:2375 restart: unless-stopped read_only: true
And then add it to the DOCKER_MODS_EXTRA_HOSTS env using the full protocol and port, separating multiple servers with a pipe (|), e.g.
yaml- DOCKER_MODS_EXTRA_HOSTS=tcp://host1.example.com:2375|tcp://host2.example.com:2375|tcp://192.168.0.5:2375
As above you will need to mount the /modcache folder on your remote host(s), ensuring it is mapped for all participating containers.
To help you get started creating a container from this image you can either use docker compose or the docker cli.
[!NOTE] Unless a parameter is flaged as 'optional', it is mandatory and a value must be provided.
yaml--- services: modmanager: image: lscr.io/linuxserver/modmanager:latest container_name: modmanager environment: - DOCKER_MODS= `#optional` - DOCKER_HOST= `#optional` - DOCKER_MODS_EXTRA_HOSTS= `#optional` volumes: - /path/to/modcache:/modcache - /var/run/docker.sock:/var/run/docker.sock:ro `#optional` restart: unless-stopped
bashdocker run -d \ --name=modmanager \ -e DOCKER_MODS= `#optional` \ -e DOCKER_HOST= `#optional` \ -e DOCKER_MODS_EXTRA_HOSTS= `#optional` \ -v /path/to/modcache:/modcache \ -v /var/run/docker.sock:/var/run/docker.sock:ro `#optional` \ --restart unless-stopped \ lscr.io/linuxserver/modmanager:latest
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.
| Parameter | Function |
|---|---|
-e DOCKER_MODS= | Pipe-delimited (|) list of mods to download |
-e DOCKER_HOST= | Specify the docker endpoint to use if not using the docker.sock |
-e DOCKER_MODS_EXTRA_HOSTS= | Pipe-delimited (|) list of additional hosts to query & download mods for. See app setup section for details. |
-v /modcache | Modmanager mod storage. |
-v /var/run/docker.sock:ro | Mount the host docker socket into the container. |
bashdocker exec -it modmanager /bin/sh
bashdocker logs -f modmanager
bashdocker inspect -f '{{ index .Config.Labels "build_version" }}' modmanager
bashdocker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/modmanager:latest
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.
Below are the instructions for updating containers:
Update images:
bashdocker compose pull
bashdocker compose pull modmanager
Update containers:
bashdocker compose up -d
bashdocker compose up -d modmanager
You can also remove the old dangling images:
bashdocker image prune
bashdocker pull lscr.io/linuxserver/modmanager:latest
bashdocker stop modmanager
bashdocker rm modmanager
bashdocker image prune
[!TIP] We recommend https://crazymax.dev/diun/ for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
If you want to make local modifications to these images for development purposes or just to customize the logic:
bashgit clone https://github.com/linuxserver/docker-modmanager.git cd docker-modmanager docker build \ --no-cache \ --pull \ -t lscr.io/linuxserver/modmanager:latest .
The ARM variants can be built on x86_64 hardware and vice versa using lscr.io/linuxserver/docker-qemu-static
bashdocker run --rm --privileged lscr.io/linuxserver/docker-qemu-static --reset
Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务