-
Suggestion
-
Resolution: Fixed
-
None
-
5
-
Issue Summary
Using docker compose v2.29.3 or newer with mounted volumes is not working in Bitbucket Pipelines.
Steps to Reproduce
- Create a pipeline with the following YAML and docker compose definition:
services: my-service: image: alpine command: ["echo", "this is a test"] volumes: - .:/test
pipelines: default: - step: name: Testing pipelines with compose script: - docker compose run my-service services: - docker
- The step will fail with the error
Error response from daemon: authorization denied by plugin pipelines: --mounts is not allowed
Expected Results
The step should be executed successfully as in the previous version of compose (<= 2.29.2)
Actual Results
The pipeline step fails with the error
Error response from daemon: authorization denied by plugin pipelines: --mounts is not allowed
Workaround
- Downgrade compose to v2.29.2
or - Use a docker image that comes with compose <= 2.29.2 installed.