Support Docker v27 in Bitbucket Pipelines

XMLWordPrintable

    • 5

      Issue Summary

      Using docker compose v2.29.3 or newer with mounted volumes is not working in Bitbucket Pipelines.

      Steps to Reproduce

      1. 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
        
      2. 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.

            Assignee:
            Unassigned
            Reporter:
            Patrik S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: