Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issue "operation not permitted" #11

Closed
mgsolid opened this issue Nov 6, 2019 · 3 comments
Closed

build issue "operation not permitted" #11

mgsolid opened this issue Nov 6, 2019 · 3 comments

Comments

@mgsolid
Copy link

mgsolid commented Nov 6, 2019

#2 [internal] load .dockerignore
#2 ...

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 59B done
#1 DONE 0.1s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.2s
error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: failed to mount /tmp/buildkit-mount291075877: [{Type:bind Source:/tmp/buildkitd/runc-native/snapshots/snapshots/1 Options:[rbind ro]}]: operation not permitted

@by-cx
Copy link

by-cx commented Nov 6, 2019

We experience very same issue :-(

Concourse version: 5.6.0

@mattdodge
Copy link

Per #5 this typically means you aren't running in privileged mode. Add the privileged: true line to your task config

- task: build image
  privileged: true
  config:
    ...

@vito vito closed this as completed Nov 20, 2019
@vito
Copy link
Member

vito commented Nov 20, 2019

Per https://github.com/vito/oci-build-task#oci-build-task:

A stretch goal of this is to support running without privileged: true, though it currently still requires it.

However the README example below was wrong, so I've corrected it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants