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

只谈情不闲聊 提交于 2019-12-13 04:02:02

问题


I have concourse 3.8.0 running on my workstation which is Ubuntu 17.04 and here is my pipeline definition:

---
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

And here is the output:

This works fine in concourse 2.7.7. I haven't tried any versions between 2.7.7 and 3.8.0 yet.


回答1:


You need privileged: true on the resource type definition:

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


来源:https://stackoverflow.com/questions/48327705/concourseci-docker-image-resource-issue-mount-permission-denied-are-you-roo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!