With Drone 0.7 on the server side, and drone version 0.5.0+dev
on the CLI side, I’ve been trying to configure drone to pull an image from my private Docker Hub repository.
But I haven’t been successful in getting past the ERROR: Error response from daemon: repository [my repo] not found: does not exist or no pull access
error in my build logs.
I noticed that the docs contain a few different approaches to doing this - so I’m wondering if I’m overlooking the preferred way to accomplish this in 0.7.
What I’ve tried so far:
I’ve attempted to follow that guide, and used drone secret add
to add a DOCKER_PASSWORD secret to my repository. I then updated the .drone.yml in my git repo to use password: ${DOCKER_PASSWORD}
for auth. I still get the does not exist or no pull access
error when drone tries to pull my docker hub image, though.
-
Adding secrets for my repo in the UI - I noticed secrets can be added in the UI, so I tried adding secrets to my project (I named them
REGISTRY_USERNAME
andREGISTRY_PASSWORD
, and removed the username and password lines from my .drone.yml). This still didn’t seem to help, though. -
I tried following http://readme.drone.io/0.5/download-private-docker-images-secrets/
No luck with that approach either - although maybe the doc doesn’t apply to the latest version of the CLI, since I see it mentions drone secrets
, while the subcommand seems to have been changed to drone secret
?
- I tried using the drone CLI and
drone registry add
, following this page in the docs:
http://docs.drone.io/manage-registry-credentials/
However, with the version of the drone CLI that I’m running (drone version 0.5.0+dev
), the drone registry
subcommand doesn’t seem to exist:
# drone registry -h
No help topic for 'registry'
Is there a recommended way to add Docker Hub credentials in drone 0.7 besides the approaches I mentioned above? I’d like to avoid putting the credentials into my .drone.yml.
Thanks!