如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Docker image for Adagios built from git. The image has Adagios running with Nagios 4, PNP4Nagios and Livestatus.
docker create \ --name=my-adagios \ -p 80:80 \ opinkerfi/adagios-git
Log in with user nagiosadmin and password nagiosadmin
The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side. For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container. So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 [***] would show you what's running INSIDE the container on port 80.
-p 80 - Port for Adagios webui-p 6557 - Port for MK Livestatus - [***]For shell access whilst the container is running do docker exec -it my-adagios /bin/bash.
To access Adagios :80/adagios To access Nagios 4 UI :80/nagios
This docker command runs Adagios on http://localhost:8080 and MK Livestatus on 6557/tcp. The Adagios/Pynag code from github is accessable in your local ~/code directory so you can make any changes and then restart the container to see the progress of your work. Adagios uses MK Livestatus for communicating with Nagios and it is possible to communicate with Livestatus remotely on port 6557/tcp. Please see the guide below for more information on Livestatus communication.
SHELLdocker run -it -p 8080:80 \ -p 6557:6557 \ -v ~/code/adagios:/opt/adagios \ -v ~/code/pynag:/opt/pynag \ -v ~/code/logs:/var/log/nagios \ --name adagios opinkerfi/adagios-git:latest
SHELLdocker-compose up
where the contents of docker-compose.yml is similar to the example provided
YAMLversion: '3.1' services: adagios: image: opinkerfi/adagios-git:latest ports: - 8080:80 - 6557:6557 volumes: - ./adagios:/opt/adagios - ./pynag:/opt/pynag - ./logs:/var/log/nagios volumes: adagios: pynag: logs:
We have created a small script that you can use to setup the local development environment
SHELLcd ~/my/adagios/env/dev/folder # Folder that you want to keep the code for pynag and adagios bash -c "$(curl -L https://raw.githubusercontent.com/opinkerfi/docker-adagios-git/master/setup_dev_env.sh)"
To access your Adagios development container, direct your browser to [***] Now do some changes with your Adagios or Pynag code inside your local volumes that you created before and restart your container.
SHELLdocker-compose restart
When the container restarts it will install Adagios and Pynag from your local volumes. Your new code changes should now reflect on your Adagios developement container.
Get status information for all hosts with Livestatus
SHELLecho "GET hosts" | nc localhost 6557
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务