ConcourseCI - docker-image资源问题; mount:权限被拒绝(你是root吗?)

时间:2018-01-18 18:06:50

标签: docker continuous-integration concourse

我在我的工作站上运行的是汇集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

这是输出:

enter image description here

这在大厅2.7.7中工作正常。我还没有在2.7.7和3.8.0之间尝试过任何版本。

1 个答案:

答案 0 :(得分:1)

资源类型定义需要privileged: true

resource_types:
- name: docker-image
  privileged: true
  type: docker-image
  source:
    repository: concourse/docker-image-resource
    tag: latest