Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23400

Support Docker v27 in Bitbucket Pipelines

XMLWordPrintable

    • 5
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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.

              Unassigned Unassigned
              641e77b2eb21 Patrik S
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: