
如果你使用 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://raw.githubusercontent.com/11notes/static/refs/heads/master/img/banner/README.png
!size!https://raw.githubusercontent.com/11notes/static/refs/heads/master/img/markdown/transparent5x2px.png!pulls!https://raw.githubusercontent.com/11notes/static/refs/heads/master/img/markdown/transparent5x2px.png%5B](https://github.com/11notes/docker-patchmon/issues)!https://raw.githubusercontent.com/11notes/static/refs/heads/master/img/markdown/transparent5x2px.png!swiss_made
以无root权限和无发行版方式运行PatchMon。
https://github.com/PatchMon/PatchMon%EF%BC%88%E7%94%B1https://github.com/PatchMon%E5%88%9B%E5%BB%BA%EF%BC%89%E6%98%AF%E4%B8%80%E4%B8%AA%E4%BC%81%E4%B8%9A%E7%BA%A7%E5%B9%B3%E5%8F%B0%EF%BC%8C%E4%B8%BA%E8%BF%90%E7%BB%B4%E5%9B%A2%E9%98%9F%E6%8F%90%E4%BE%9B%E5%8D%95%E4%B8%80%E8%A7%86%E5%9B%BE%EF%BC%8C%E7%94%A8%E4%BA%8E%E7%9B%91%E6%8E%A7%E3%80%81%E8%A1%A5%E4%B8%81%E5%92%8C%E4%BF%9D%E6%8A%A4Linux%E8%AE%BE%E5%A4%87%EF%BC%8C%E5%90%8C%E6%97%B6%E6%94%AF%E6%8C%81FreeBSD%E5%92%8CWindows%E4%BB%A3%E7%90%86%E3%80%82
我能用这个做什么? 该镜像以https://github.com/11notes/RTFM/blob/main/linux/container/image/rootless.md%E5%92%8Chttps://github.com/11notes/RTFM/blob/main/linux/container/image/distroless.md%E6%96%B9%E5%BC%8F%E8%BF%90%E8%A1%8CPatchMon%EF%BC%8C%E4%BB%A5%E6%8F%90%E5%8D%87%E5%AE%89%E5%85%A8%E6%80%A7%E3%80%82
为什么我应该运行这个镜像而不是其他已存在的镜像? 好问题!因为...
如果您重视安全性、简洁性和极致优化,这个镜像可能适合您。
以下是该镜像与最常用或原始镜像的对比:
| 镜像 | 磁盘大小 | 默认用户 | https://github.com/11notes/RTFM/blob/main/linux/container/image/distroless.md | 支持架构 |
|---|---|---|---|---|
| 11notes/patchmon | 253MB | 1000:1000 | ✅ | amd64, arm64, armv7 |
| patchmon/patchmon-server | 639MB | 65532:65532 | ❌ | amd64, arm64 |
yamlname: "patchmon" x-lockdown: &lockdown # 防止对镜像本身的写访问 read_only: true # 防止容器内进程获取更多权限 security_opt: - "no-new-privileges=true" services: server: depends_on: postgres: condition: "service_healthy" restart: true redis: condition: "service_healthy" restart: true image: "11notes/patchmon:2.0.2" <<: *lockdown environment: TZ: "Europe/Zurich" DATABASE_URL: "postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres" REDIS_PASSWORD: "${REDIS_PASSWORD}" CORS_ORIGIN: "${CORS_ORIGIN}" JWT_SECRET: "${JWT_SECRET}" volumes: - "server.var:/patchmon/var" ports: - "3000:3000/tcp" networks: frontend: backend: # 禁用遥测(源码中已禁用) extra_hosts: - "metrics.patchmon.cloud:127.0.0.1" restart: "always" postgres: # 关于该镜像的更多信息请查看: # https://github.com/11notes/docker-postgres image: "11notes/postgres:18" <<: *lockdown environment: TZ: "Europe/Zurich" POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" POSTGRES_BACKUP_SCHEDULE: "0 3 * * *" volumes: - "postgres.etc:/postgres/etc" - "postgres.var:/postgres/var" - "postgres.backup:/postgres/backup" tmpfs: - "/postgres/run:uid=1000,gid=1000" - "/postgres/log:uid=1000,gid=1000" networks: backend: restart: "always" redis: # 关于该镜像的更多信息请查看: # https://github.com/11notes/docker-redis image: "11notes/redis:8.6.3" <<: *lockdown environment: REDIS_PASSWORD: "${REDIS_PASSWORD}" TZ: "Europe/Zurich" networks: backend: volumes: - "redis.etc:/redis/etc" - "redis.var:/redis/var" tmpfs: - "/run:uid=1000,gid=1000" restart: "always" volumes: server.var: postgres.etc: postgres.var: postgres.backup: redis.etc: redis.var: networks: frontend: backend: internal: true
若要更改容器镜像的默认UID/GID,请参考https://github.com/11notes/RTFM/blob/main/linux/container/image/11notes/how-to.changeUIDGID.md#change-uidgid-the-correct-way%E3%80%82
| 参数 | 值 | 描述 |
|---|---|---|
user | docker | 用户名 |
uid | 1000 | 用户标识符 |
gid | 1000 | 组标识符 |
home | /patchmon | docker用户的主目录 |
| 参数 | 说明 | 默认值 |
|---|---|---|
TZ | 时区 | |
DEBUG | 激活容器镜像和应用的调试选项(若支持) |
以下是镜像的主要标签,同时也存在基于每个提交及其短SHA256值的标签:
我认为:latest标签是坏习惯,不应使用。许多开发者在新版本中引入破坏性变更,会导致使用:latest的用户出现问题。若不想更改为最新语义化版本,可使用语义化版本的短版本:例如用:2或:2.0代替:2.0.2,这些标签会随新版本更新,与:latest类似但固定在主版本或次版本,理论上不会引入破坏性变更。
若仍坚持使用最新版本,可使用:rolling标签,但需注意:您将立即获得应用的最新版本,无论是否存在破坏性变更或安全问题,风险自负!
docker pull 11notes/patchmon:2.0.2 docker pull ghcr.io/11notes/patchmon:2.0.2 docker pull quay.io/11notes/patchmon:2.0.2
该镜像默认支持Unraid,只需在任何标签后添加**-unraid**,镜像将以99:100而非1000:1000运行。
该镜像默认支持nobody用户,只需在任何标签后添加**-nobody**,镜像将以65534:65534而非1000:1000运行。
该镜像不基于其他镜像,而是以https://hub.docker.com/_/scratch%E4%B8%BA%E5%9F%BA%E7%A1%80%E5%B1%82%EF%BC%8C%E5%8C%85%E5%90%AB%E4%BB%A5%E4%B8%8B%E6%97%A0%E5%8F%91%E8%A1%8C%E7%89%88%E5%B1%82%EF%BC%9A
该镜像由您自行承担风险使用。更新镜像版本前请务必备份。查看https://github.com/11notes/docker-patchmon/releases%E4%BA%86%E8%A7%A3%E7%A0%B4%E5%9D%8F%E6%80%A7%E5%8F%98%E6%9B%B4%E3%80%82%E8%8B%A5%E4%BD%BF%E7%94%A8%E4%B8%AD%E9%81%87%E5%88%B0%E9%97%AE%E9%A2%98%EF%BC%8C%E8%AF%B7%E6%8F%90%E4%BA%A4https://github.com/11notes/docker-patchmon/issues%E3%80%82%E8%8B%A5%E6%9C%89%E9%97%AE%E9%A2%98%E6%88%96%E5%BB%BA%E8%AE%AE%EF%BC%8C%E8%AF%B7%E5%88%9B%E5%BB%BAhttps://github.com/11notes/docker-patchmon/discussions%E8%80%8C%E9%9D%9Eissue%E3%80%82%E6%82%A8%E5%8F%AF%E5%9C%A8https://github.com/11notes?tab=repositories%E6%89%BE%E5%88%B0%E6%88%91%E6%89%80%E6%9C%89%E7%9A%84%E4%BB%93%E5%BA%93%E3%80%82
创建于22.05.2026, 09:59:39 (CET)
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务