Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ERROR: for build_mysql_1 Cannot create container for service mysql: authorization denied by plugin

getting an error when running npm run env:start from Wordpress develop.

ERROR: for build_mysql_1 Cannot create container for service mysql: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories

1 answer

1 vote

Hi Xavi,

Are you using a mysql service in your build and are you mounting the mysql volume to a path other than $BITBUCKET_CLONE_DIR?

Based on the error you posted here, this looks to be the most likely reason for this error. For security reasons, we don't allow mapping volumes with a source outside $BITBUCKET_CLONE_DIR.

The workaround in this case would be to mount your volume inside of $BITBUCKET_CLONE_DIR (opt/atlassian/bitbucketci/agent/build/.* or /opt/atlassian/pipelines/agent/build/.*)

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,717 views 10 16
Read article

Community Events

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

Events near you