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

Maven fabric8 plugin fails to run docker container in pipeline

    XMLWordPrintable

Details

    Description

      I am running a maven build that uses io.fabric8:docker-maven-plugin:0.23.0 to spawn docker containers for integration testing during mvn install. This works fine locally, but when executed with Bitbucket Pipelines, I get the following error:

      [INFO] DOCKER> Pulling from library/postgres
      #
      [INFO] DOCKER> Digest: sha256:d6150452877361e26d0fd178d278af8f80d59c75cbb5c2413cfb4fdb5ed4f750
      [INFO] DOCKER> Status: Downloaded newer image for postgres:10-alpine
      [INFO] DOCKER> Pulled postgres:10-alpine in 2 seconds 
      [ERROR] DOCKER> Error occurred during container startup, shutting down...
      [ERROR] DOCKER> I/O Error [Unable to create container for [postgres:10-alpine] : authorization denied by plugin pipelines: Command not supported. (Forbidden: 403)]
      

      So it seems that docker itself is working since the image is fetched successfully but when it comes to actually starting a container, the pipelines plugin forbids the operation.
      On the contrary, a literal docker run -d postgres:10 inside my pipeline step works.

      Attachments

        1. no-plugin
          18 kB
        2. plugin
          18 kB

        Activity

          People

            matt@atlassian.com Matt Ryall
            54ab56b1cb58 Moritz Becker
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: