4

Aim

to login to a private docker registry using BitBucket pipelines.

Attempt

Based on this documentation the following bitbucket-pipelines.yml:

image: docker:latest

pipelines:
  default:
    - step:
        script:
          - docker login -u $D_REGISTRY_USER -p $D_REGISTRY_PASS $D_REGISTRY_URL

options:
  docker: true

was created. When BitBucket pipelines run this it results in:

+ docker login -u $DOCKER_REGISTRY_USERNAME -p $DOCKER_REGISTRY_PASSWORD 
$DOCKER_REGISTRY_URL
Warning: failed to get default registry endpoint from daemon 
(Error response from daemon: authorization denied by plugin pipelines: Command 
not supported.). 
Using system default: https://index.docker.io/v1/
Error response from daemon: authorization denied by plugin pipelines: Command 
not supported.
4

At the moment the docker login and docker push commands are only available to Pipelines Alpha members.

You can read about the features available to Alpha at "Pipelines Alpha".

In order to participate, the above link includes instructions on how you can opt-in to the added functionality.

Personally I received an e-mail from Atlassian a day after signing up saying my projects now include Alpha features. So this feature works in my pipelines without any issues.

  • 1
    Pipelines Alpha - Your response has been recorded. I will accept the answer, when the issue is solved, i.e. when docker runs in our repository. – 030 Apr 5 '17 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.