
如果你使用 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
!https://img.shields.io/badge/image_size-$%7B%7B image_size }}-green?color=%2338ad2d!https://raw.githubusercontent.com/11notes/static/refs/heads/master/img/markdown/transparent5x2px.png!https://img.shields.io/docker/pulls/11notes/registry?color=2b75d6!https://raw.githubusercontent.com/11notes/static/refs/heads/master/img/markdown/transparent5x2px.png%5B](https://github.com/11notes/docker-registry/issues)!https://raw.githubusercontent.com/11notes/static/refs/heads/master/img/markdown/transparent5x2px.png!https://img.shields.io/badge/Swiss_Made-FFFFFF?labelColor=FF0000&logo=data:image/svg%2bxml;base64,PHN2ZyB2ZXJzaW9uPSIxIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDMyIDMyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0idHJhbnNwYXJlbnQiLz4KICA8cGF0aCBkPSJtMTMgNmg2djdoN3Y2aC03djdoLTZ2LTdoLTd2LTZoN3oiIGZpbGw9IiNmZmYiLz4KPC9zdmc+
以rootless和distroless方式运行容器registry
容器registry是一个存储和内容分发系统,用于保存带名称的容器镜像及其他内容,支持不同标签版本的管理与分发。
该镜像提供以下核心能力:
/etc/docker/daemon.json中添加"registry-mirrors": ["https://registry.domain.com"])yamlversion: 0.1 log: accesslog: disabled: false level: warn formatter: json fields: service: registry storage: cache: blobdescriptor: inmemory blobdescriptorsize: 0 filesystem: rootdirectory: /registry/var maintenance: uploadpurging: enabled: true age: 168h interval: 24h dryrun: false http: addr: 0.0.0.0:5000 debug: addr: 0.0.0.0:9100 prometheus: enabled: true path: /metrics net: tcp headers: X-Content-Type-Options: [nosniff] health: storagedriver: enabled: true interval: 10s threshold: 3 proxy: remoteurl: https://registry-1.docker.io ttl: 168h
/registry/etc:配置文件目录/registry/var:镜像数据存储与缓存目录yamlname: "container" x-lockdown: &lockdown # 禁止对镜像本身的写访问 read_only: true # 防止容器内进程提升权限 security_opt: - "no-new-privileges=true" services: registry: image: "docker.xuanyuan.run/11notes/registry:3.1.1" <<: *lockdown environment: TZ: "Asia/Shanghai" volumes: - "registry.etc:/registry/etc" - "registry.var:/registry/var" ports: - "3000:5000/tcp" networks: frontend: restart: "always" volumes: registry.etc: registry.var: networks: frontend:
| 参数 | 说明 | 默认值 |
|---|---|---|
TZ | 时区(如Asia/Shanghai) | 无 |
DEBUG | 启用容器与应用调试模式 | 无 |
3.1.1:稳定版本3.1.1-unraid:适配Unraid系统(运行用户99:100)3.1.1-nobody:以nobody用户(65534:65534)运行bashdocker pull docker.xuanyuan.run/11notes/registry:3.1.1 docker pull ***-ghcr.xuanyuan.run/11notes/registry:3.1.1 docker pull ***-quay.xuanyuan.run/11notes/registry:3.1.1
:latest标签,推荐使用语义化版本标签(如:3.1)以减少 breaking changes 风险您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 11notes/registry 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: