Hi!, I created a simple pipeline to run "docker-compose up" and then "docker-compose down", everything is correct, the images get build correctly, but it throws an error when is going to create the container. the error is:
ERROR: for build_db_1 Cannot create container for service db: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories
I have no clue of what this means. The pipeline is the following:
- chmod 777 ci/dependencies.sh
- docker-compose up -d --build
- docker-compose down
# Add python pip and bash
apk add --no-cache py-pip bash
# Install docker-compose via pip
pip install --no-cache-dir docker-compose
What is this error telling me? Thank you!
There are some restrictions on which docker options you're allowed to use in Pipelines (necessary to maintain security in the shared Pipelines environment). Your docker compose configuration is attempting to map a volume with a source that's outside your build directory (see Running Docker Commands on this page for a full list of restrictions: https://confluence.atlassian.com/bitbucket/run-docker-commands-in-bitbucket-pipelines-879254331.html).
What does your docker-compose.yml file look like?
I have the same problem
Here is how my docker-compose looks like
I have even set my repository variables
`BITBUCKET_CLONE_DIR` to be ` / `
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events