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

BitBucket docker: Error response from daemon: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories. #2

Open
bennymeade opened this issue Feb 22, 2019 · 0 comments

Comments

@bennymeade
Copy link

bennymeade commented Feb 22, 2019

Hello @thomasleveil,
I'm trying to run this in BitBucket pipelines, using the following bitbucket-pipelines.yml script:

image: tomdesinto/testcafe
pipelines:
  default:
    - step:
        name: Run tests
        deployment: test 
        script:
          - pwd
          - ls -al
          - docker build -t tomdesinto/testcafe .
          - docker run --rm -i -v /my/testcafe/tests/:/tests tomdesinto/testcafe:latest testcafe 'chromium --no-sandbox' '/tests/*.test.js'
        services:
          - docker

But on the docker run step this error is thrown:

+ docker run --rm -i -v /my/testcafe/tests/:/tests tomdesinto/testcafe:latest testcafe 'chromium --no-sandbox' '/tests/*.test.js'
docker: Error response from daemon: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories.

I tried removing the -v (Bind mount a volume) reference but that also throws an error; docker: invalid reference format.

How can I overcome this?

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

1 participant