
如果你使用 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://img.shields.io/docker/pulls/kokuwaio/buildctl](https://hub.docker.com/r/kokuwaio/buildctl) https://img.shields.io/docker/image-size/kokuwaio/buildctl](https://hub.docker.com/r/kokuwaio/buildctl) https://img.shields.io/badge/source-Dockerfile%20-blue]([] https://img.shields.io/badge/License-EUPL%201.2-blue]([] https://img.shields.io/gitea/pull-requests/open/woodpecker/buildctl?gitea_url=https%3A%2F%2Fgit.kokuwa.io]([] https://img.shields.io/gitea/issues/open/woodpecker/buildctl?gitea_url=https%3A%2F%2Fgit.kokuwa.io]([]
这是一个WoodpeckerCI插件,基于https://github.com/moby/buildkit%EF%BC%8C%E7%94%A8%E4%BA%8E%E9%80%9A%E8%BF%87%E8%BF%9C%E7%A8%8Bbuildkit%E4%B8%BB%E6%9C%BA%E6%9E%84%E5%BB%BA%E5%AE%B9%E5%99%A8%E9%95%9C%E5%83%8F%E3%80%82%E4%B9%9F%E5%8F%AF%E5%9C%A8Gitlab%E3%80%81Github%E6%88%96%E6%9C%AC%E5%9C%B0%E7%8E%AF%E5%A2%83%E4%BD%BF%E7%94%A8%EF%BC%8C%E8%AF%A6%E8%A7%81%E4%B8%8B%E6%96%B9%E7%A4%BA%E4%BE%8B%E3%80%82
yamlsteps: buildctl: depends_on: [] image: kokuwaio/buildctl:v0.29.0 settings: name: - registry.example.org/foo:latest - registry.example.org/foo:0.0.1 annotation: org.opencontainers.image.title: 我的镜像 org.opencontainers.image.description: 镜像描述 build-args: NPM_CONFIG_REGISTRY: ${NPM_CONFIG_REGISTRY} # 复用CI环境变量 FOO: bar platform: [linux/amd64, linux/arm64] auth: registry.example.org: username: {from_secret: my_username} password: {from_secret: my_password} https://index.docker.io/v1/": username: {from_secret: docker_io_username} password: {from_secret: docker_io_password}
yamlbuildctl: needs: [] stage: lint image: name: kokuwaio/buildctl:v0.29.0 entrypoint: [""] script: /usr/local/bin/entrypoint.sh variables: PLUGIN_ADDR: tcp://0.8.1.5:1234 PLUGIN_NAME: registry.example.org/foo:latest,registry.example.org/foo:0.0.1 PLUGIN_PLATFORM: linux/amd64,linux/arm64 PLUGIN_AUTH: '{"registry.example.org":{"username":"my-user","password":"changeMe"}}' rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event"
bashPLUGIN_ADDR=tcp://0.8.1.5:1234 PLUGIN_NAME=registry.example.org/foo:latest,registry.example.org/foo:0.0.1 PLUGIN_PLATFORM=linux/amd64,linux/arm64 docker run --rm --user=$(id -u) --volume=$HOME:$HOME:ro --workdir=$PWD --env=PLUGIN_ADDR --env=PLUGIN_NAME --env=PLUGIN_PLATFORM kokuwaio/buildctl
| 设置名称 | 环境变量 | 默认值 | 描述 |
|---|---|---|---|
addr | PLUGIN_ADDR | $BUILDKIT_HOST | 要使用的Buildkit主机 |
frontend | PLUGIN_FRONTEND | dockerfile.v0 | 目前仅支持dockerfile前端 |
context | PLUGIN_CONTEXT | $PWD | 构建使用的上下文目录 |
dockerfile | PLUGIN_DOCKERFILE | Dockerfile | 要使用的Dockerfile文件 |
target | PLUGIN_TARGET | none | Dockerfile构建目标 |
build-args | PLUGIN_BUILD_ARGS | none | 传递给构建的参数 |
platform | PLUGIN_PLATFORM | none | 容器镜像的目标平台 |
reproducible | PLUGIN_REPRODUCIBLE | true | 启用可复现构建设置 |
source-date-epoch | PLUGIN_SOURCE_DATE_EPOCH | 0 | 可复现构建使用的时间戳 |
name | PLUGIN_NAME | none | 镜像推送的目标名称列表 |
annotation | PLUGIN_ANNOTATION | none | 镜像添加的注释(标签) |
push | PLUGIN_PUSH | true | 若设置镜像名称则推送 |
auth | PLUGIN_AUTH | none | 私有仓库的认证信息 |
env-file | PLUGIN_ENV_FILE | none | 读取环境变量的文件路径 |
| 镜像地址 | 说明 | amd64 | arm64 |
|---|---|---|---|
| https://hub.docker.com/r/kokuwaio/buildctl | Woodpecker插件 | https://img.shields.io/docker/image-size/kokuwaio/buildctl?arch=amd64&label=](https://hub.docker.com/r/kokuwaio/buildctl) | https://img.shields.io/docker/image-size/kokuwaio/buildctl?arch=arm64&label=](https://hub.docker.com/r/kokuwaio/buildctl) |
| https://hub.docker.com/r/moby/buildkit | 非Woodpecker插件 | https://img.shields.io/docker/image-size/moby/buildkit?arch=amd64&label=](https://hub.docker.com/r/moby/buildkit) | https://img.shields.io/docker/image-size/moby/buildkit?arch=arm64&label=](https://hub.docker.com/r/moby/buildkit) |
| https://hub.docker.com/r/nordseth/buildctl | 非Woodpecker插件 | https://img.shields.io/docker/image-size/nordseth/buildctl?arch=amd64&label=](https://hub.docker.com/r/nordseth/buildctl) | https://img.shields.io/docker/image-size/nordseth/buildctl?arch=arm64&label=](https://hub.docker.com/r/nordseth/buildctl) |
| https://hub.docker.com/r/shopstic/buildctl | 非Woodpecker插件,已过时 | https://img.shields.io/docker/image-size/shopstic/buildctl?arch=amd64&label=](https://hub.docker.com/r/shopstic/buildctl) | https://img.shields.io/docker/image-size/shopstic/buildctl?arch=arm64&label=](https://hub.docker.com/r/shopstic/buildctl) |
| https://hub.docker.com/r/agisoft/buildctl | 非Woodpecker插件,已过时 | https://img.shields.io/docker/image-size/agisoft/buildctl?arch=amd64&label=](https://hub.docker.com/r/agisoft/buildctl) | https://img.shields.io/docker/image-size/agisoft/buildctl?arch=arm64&label=](https://hub.docker.com/r/agisoft/buildctl) |
| https://hub.docker.com/r/tikivn/buildctl | 非Woodpecker插件,已过时 | https://img.shields.io/docker/image-size/tikivn/buildctl?arch=amd64&label=](https://hub.docker.com/r/tikivn/buildctl) | https://img.shields.io/docker/image-size/tikivn/buildctl?arch=arm64&label=](https://hub.docker.com/r/tikivn/buildctl) |
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务