我在我的工作站上运行的是汇集3.8.0,这是Ubuntu 17.04和 这是我的管道定义:
---
jobs:
- name: job-docker-image-resource
public: true
plan:
- get: "golang_tools_docker_image"
- task: docker-image-resource
config:
platform: linux
image_resource:
type: docker-image
source: {repository: busybox}
run:
path: echo
args: [docker-image-resource]
resources:
- name: "golang_tools_docker_image"
type: docker-image
source:
repository: "golang"
tag: "1.9.2-alpine3.7"
resource_types:
- name: docker-image
type: docker-image
source:
repository: concourse/docker-image-resource
tag: docker-1.12.6
这是输出:
这在大厅2.7.7中工作正常。我还没有在2.7.7和3.8.0之间尝试过任何版本。
答案 0 :(得分:1)
资源类型定义需要privileged: true
:
resource_types:
- name: docker-image
privileged: true
type: docker-image
source:
repository: concourse/docker-image-resource
tag: latest