
如果你使用 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/docker/pulls/umagistr/seanime.svg](https://hub.docker.com/r/umagistr/seanime) https://github.com/umag/seanime-docker/actions/workflows/build-test-publish.yml/badge.svg](https://github.com/umag/seanime-docker/actions/workflows/build-test-publish.yml) https://github.com/umag/seanime-docker/actions/workflows/ci.yml/badge.svg](https://github.com/umag/seanime-docker/actions/workflows/ci.yml)
一个简单的多架构Docker镜像,用于部署Seanime。
注意:硬件加速变体(hwaccel和CUDA)会自动构建和发布,但由于GitHub Actions运行环境缺乏特定硬件(Intel QSV/VAAPI或NVIDIA GPU),构建过程中无法进行完整测试。虽然基础镜像结构和功能已验证,但硬件特定功能需在您自己的环境中测试。
我们提供三种镜像变体以满足不同需求:
| 变体 | 标签 | 用户 | 描述 |
|---|---|---|---|
| 默认 | latest | root | 标准设置(Alpine + FFmpeg),向后兼容。 |
| 无root | latest-rootless | seanime (UID 1000) | 安全优先,以非root用户运行。 |
| 硬件加速 | latest-hwaccel | seanime (UID 1000) | 无root + Jellyfin-FFmpeg + Intel驱动(QSV/VAAPI)。 |
| CUDA | latest-cuda | seanime (UID 1001) | 无root + FFmpeg (NVENC) + NVIDIA CUDA基础镜像。 |
默认镜像以root用户运行,与早期版本类似。
yamlservices: seanime: image: docker.xuanyuan.run/umagistr/seanime:latest container_name: seanime volumes: - /mnt/user/anime:/anime # 媒体库目录 - /mnt/user/downloads:/downloads # 下载目录 - ./seanime-config:/root/.config/Seanime # 配置文件目录 ports: - 3211:43211 # 外部端口映射到容器内43211端口 restart: unless-stopped
完整配置示例请查看https://github.com/umag/seanime-docker/raw/main/examples%E7%9B%AE%E5%BD%95%EF%BC%9A
3211 - 外部端口,映射到容器内的43211端口。
默认变体
/root/.config/Seanime - 配置文件存储目录。无root和硬件加速变体
/home/seanime/.config/Seanime - 配置文件存储目录。通用卷
/anime - 媒体库目录(挂载您的动漫目录到此)。/downloads - 下载目录。要使用Intel QSV/VAAPI硬件加速:
latest-hwaccel标签。/dev/dri传递给容器。amd64架构(其他架构将回退到软件解码)。yamlservices: seanime: image: docker.xuanyuan.run/umagistr/seanime:latest-hwaccel devices: - /dev/dri:/dev/dri # 挂载Intel图形设备 # ... 其他配置
要使用NVIDIA硬件加速:
latest-cuda标签。nvidia。yamlservices: seanime: image: docker.xuanyuan.run/umagistr/seanime:latest-cuda runtime: nvidia # 使用NVIDIA运行时 environment: - NVIDIA_VISIBLE_DEVICES=all # 允许访问所有NVIDIA设备 # ... 其他配置
本项目使用Nix和direnv管理开发依赖。
direnv allow。container-structure-testgoss / dgossbatshadolint使用BATS编排所有测试。
1. 镜像验证(结构与Goss测试)
此套件拉取所有镜像变体,并对其运行容器结构测试和Goss测试。
bashbats tests/images.bats
2. Docker Compose集成测试
此套件验证示例Compose配置。
bashbats tests/compose.bats
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务