I get an authentication error when I am pushing to a private docker registry. Pulling on the other hand works as expected. Sample .drone.yml
that highlights the issue:
pipeline:
test-pull:
image: private.registry/image
commands:
- echo "Pull Ok"
test-push:
image: plugins/docker
repo: image
registry: private.registry
username: admin
password: password
tags: latest
dockerfile: Dockerfile
The output I am getting when I am running drone exec --local
is the following:
+ echo "Pull Ok"
Pull Ok
+ /usr/local/bin/dockerd -g /var/lib/docker
time="2017-09-15T14:26:36Z" level=fatal msg="Error authenticating: exit status 1"
2017/09/15 17:26:38 drone_step_2 : exit code 1
The user credentials are correct, pushing directly to the private regisrtry works without issues:
docker push private.registry/image