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.