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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.