我将 Concourse-CI 与私有 Docker 注册表结合使用,一切正常。但是,我想将任务作为我通过注册表提供的图像运行。澄清一下:我不想在任务中运行图像,任务源应该是我的图像。不幸的是,我无法在此处或 Concourse-CI 文档上找到示例。
我的资源:
resources:
- name: my-image
type: registry-image
source:
repository: ((registry-url))/my-image
username: ...
password: ...
ca_certs:
- ((registry-cert))
因此,如果我是正确的,task/config/source则不能获取资源,而是anonymous-resource我将提供docker.io链接的地方。
我非常感谢一些帮助。:)
编辑:好的,所以我的第一个错误是只查看Task架构,我可以配置图像(https://concourse-ci.org/jobs.html#schema.step.task-step.image)但是当我这样做时:
- task: test
image: my-image
config:
platform: linux
inputs:
run:
...
我得到这个错误:find or create container on worker 4c38517c9713: no image plugin configured。