ConcourseCI - docker-图像资源问题;安装:权限被拒绝(你是root吗?)

ConcourseCI - docker-image resource issue; mount: permission denied (are you root?)

我的工作站上有 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

这是输出:

这在 concourse 2.7.7 中运行良好。我还没有尝试过 2.7.7 和 3.8.0 之间的任何版本。

您需要 privileged: true 资源类型定义:

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