
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
drone-kaniko是Google Kaniko官方镜像的轻量包装,旨在让Kaniko在Drone CI/CD系统中表现得与Drone Docker插件一致,支持无需root权限构建Docker镜像。
yamlkind: pipeline name: default steps: - name: publish image: banzaicloud/drone-kaniko settings: registry: registry.example.com # 未提供则默认使用index.docker.io repo: registry.example.com/example-project tags: ${DRONE_COMMIT_SHA} cache: true skip_tls_verify: false # 仅测试环境使用自签名证书时设为true build_args: - COMMIT_SHA=${DRONE_COMMIT_SHA} - COMMIT_AUTHOR_EMAIL=${DRONE_COMMIT_AUTHOR_EMAIL} username: from_secret: docker-username password: from_secret: docker-password
yamlkind: pipeline name: default steps: - name: publish image: banzaicloud/drone-kaniko settings: registry: gcr.io repo: example.com/example-project tags: ${DRONE_COMMIT_SHA} cache: true json_key: from_secret: google-application-credentials
yamlkind: pipeline name: default steps: - name: build image: golang commands: - go get - go build - make versiontags > .tags - name: publish image: banzaicloud/drone-kaniko settings: registry: registry.example.com repo: registry.example.com/example-project # 需留空tags以使用.tags文件 username: from_secret: docker-username password: from_secret: docker-password
yamlkind: pipeline name: default steps: - name: build image: golang commands: - go get - go build - name: publish image: banzaicloud/drone-kaniko settings: registry: registry.example.com repo: registry.example.com/example-project auto_tag: true # 优先级高于.tags文件 # 需留空tags以使用auto_tag username: from_secret: docker-username password: from_secret: docker-password
bashdocker run -it --rm -w /src -v $PWD:/src -e PLUGIN_USERNAME=${DOCKER_USERNAME} -e PLUGIN_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=banzaicloud/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test banzaicloud/drone-kaniko
bashdocker run -d -p 5000:5000 --restart always --name registry --hostname registry.local registry:2
bashdocker run -v $PWD:/cache gcr.io/kaniko-project/warmer:latest --verbosity=debug --image=alpine:3.8
bashdocker run --net=host -it --rm -w /src -v $PWD:/cache -v $PWD:/src -e PLUGIN_USERNAME=${DOCKER_USERNAME} -e PLUGIN_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=banzaicloud/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test -e PLUGIN_CACHE=true banzaicloud/drone-kaniko
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务