
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
MantisBT是一款开源缺陷跟踪系统,旨在帮助团队高效管理软件项目中的缺陷、错误与任务。本Docker镜像提供MantisBT的容器化部署方案,简化安装配置流程,便于快速搭建稳定的缺陷跟踪环境。
后台运行
bashdocker run -d -p 60001:80 --name mantisbt j4ym0/mantisbt
前台运行(调试模式)
bashdocker run -it -p 60001:80 --name mantisbt j4ym0/mantisbt
使用外部配置文件
推荐挂载本地config_inc.php自定义系统配置:
bashdocker run -d -v /my/local/config_inc.php:/config/config_inc.php -p 60001:80 --name mantisbt j4ym0/mantisbt
自动重启配置
添加--restart unless-stopped参数实现容器崩溃或系统启动时自动重启:
bashdocker run -d --restart unless-stopped -v /my/local/config_inc.php:/config/config_inc.php -p 60001:80 --name mantisbt j4ym0/mantisbt
http://127.0.0.1:60001进入初始化向导bashdocker exec mantisbt /cleanup.sh
如需通过域名访问,可配置Apache虚拟主机代理:
/etc/apache2/sites-available/mantis.my-site.com.conf:apache<VirtualHost *:80> ServerAdmin admin@localhost ServerName mantis.my-site.com ServerAlias mantis.my-site.com ProxyPreserveHost On ProxyRequests Off ProxyPass / http://127.0.0.1:60001/ ProxyPassReverse / http://127.0.0.1:60001/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
basha2ensite mantis.my-site.com
!https://github.com/mantisbt/mantisbt/raw/master/doc/modern_view_issues.png
!https://github.com/mantisbt/mantisbt/raw/master/doc/modern_my_view.png
!https://github.com/mantisbt/mantisbt/raw/master/doc/modern_view_issue.png
完整管理指南请参阅MantisBT官方文档:https://github.com/mantisbt/mantisbt/doc%EF%BC%88%E6%8F%90%E4%BE%9B%E6%96%87%E6%9C%AC%E3%80%81PDF%E5%8F%8AHTML%E6%A0%BC%E5%BC%8F%EF%BC%89
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。





来自真实用户的反馈,见证轩辕镜像的优质服务