
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!Stacks Logo
 # Uncomment and set incomplete_folder_path to "/incomplete" in the UI # - "/path/to/incomplete:/opt/stacks/incomplete" restart: unless-stopped environment: # These only apply on first run, afterward edit config.yaml directly # or update the configuration from the UI. - USERNAME=admin # Default admin username (change if desired) - PASSWORD=stacks # Default admin password - CHANGE THIS! # Uncomment to reset the admin password to the above values on startup # - RESET_ADMIN=true # If you're using the included flaresolverr, this will automatically # connect it. If you already got it running, you can change this # address to match your local setup, or delete this variable and set # it up inside Stacks later. - SOLVERR_URL=flaresolverr:8191 # Set your timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - TZ=UTC # Optional, but recommended - bypasses Cloudflare and DDoS-Guard # protection on mirror sites. Required if you encounter 403 errors when # downloading. Not needed for fast downloads. flaresolverr: image: ghcr.io/flaresolverr/flaresolverr:latest container_name: flaresolverr ports: - "8191:8191" environment: - LOG_LEVEL=info restart: unless-stopped
Update the volume paths to wherever you want Stacks to keep its files.
Change PASSWORD to something secure (seriously, do this).
In the same directory, run:
bashdocker compose up
If you prefer running Stacks without Docker Compose, you can use the Docker CLI directly.
Prerequisites
Create the required folders on your host:
bashmkdir -p /path/to/config /path/to/download /path/to/logs
Set up the network:
bashdocker network create stacks
Set up ***
bashdocker run -d \ --name flaresolverr \ --network stacks \ -p 8191:8191 \ -e LOG_LEVEL=info \ --restart unless-stopped \ ghcr.io/flaresolverr/flaresolverr:latest
Set up Stacks
bashdocker run -d \ --name stacks \ --network stacks \ --stop-signal SIGTERM \ -p 7788:7788 \ -v /path/to/config:/opt/stacks/config \ -v /path/to/download:/opt/stacks/download \ -v /path/to/logs:/opt/stacks/logs \ -e USERNAME=admin \ -e PASSWORD=stacks \ -e SOLVERR_URL=flaresolverr:8191 \ -e TZ=UTC \ --restart unless-stopped \ zelest/stacks:latest
Important notes
USERNAME and PASSWORD only apply on first run; afterward Stacks is configured via config.yaml.
Change the left side of -p 7788:7788 if port 7788 is already taken.
Always change the default password before exposing Stacks publicly.
To reset the admin password later, add:
bash-e RESET_ADMIN=true
By default, Stacks runs as root inside the container. This is normal fo rmany Docker images, but means that any files created or mounted volumes will also belong to root on the host.
If your other pass can't access the downloaded files, or you prefer stricter permission control, you can tell Docker to run Stacks as a different user.
Set a specific user in Docker Compose
yamlservices: stacks: # Use previous config and add: user: 1000:1000 # Replace with the UID:GID you want Stacks to use
Set a specific user in Docker CLI
bashdocker run -d \ --user 1000:1000 \ ... zelest/stacks:latest
If Stacks already have created files as root, you may need to update ownership nefore switching users:
bashsudo chown -R 1000:1000 /path/to/config sudo chown -R 1000:1000 /path/to/download sudo chown -R 1000:1000 /path/to/logs
Replace the UID/GID and paths to match your setup.
http://localhost:7788Stacks implements multiple layers of security:
Security Best Practices:
This project is licensed under the MIT License - see the LICENSE file for details.
This tool is for personal use only. Please respect copyright laws and Anna's Archive's terms of service. Support authors and publishers when possible by purchasing their work.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务