Maven fabric8 plugin fails to run docker container in pipeline

XMLWordPrintable

      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.

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

            Assignee:
            Matt Ryall
            Reporter:
            Moritz Becker
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: