By lon9
I tried three methods to login to container registry from a droplet, but they are not working.
Tried methods
doctl registry loginIt’s was no error and stored credentials to .docker/config.json, but can’t pull my image on registry.
.docker/config.jsonIt’s same as 1
docker login registry.digitalocean.comGot error
Error response from daemon: Get https://registry.digitalocean.com/v2/: unauthorized: authentication required
How do I login the registry?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
$ doctl registry login Logging Docker in to registry.digitalocean.com Error: GET https://api.digitalocean.com/v2/registry/docker-credentials?read_write=true: 412 registry not configured for user
$ docker login registry.digitalocean.com Authenticating with existing credentials… WARNING! Your password will be stored unencrypted in ~/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Thank you.
Since we reached the maximum comments under one thread, I’ll start a new one here.
That’s a Key for using the API. The API will help you in cases like connecting your droplet with your account. That way from your droplet you’ll be able to manage your account. That’s just an example, you’ll be able to do a lot more. I’ll suggest giving a look the following page :
Regards, KFSys
Hi @lon9,
I’ve had similar issues as well, in my case I missed a couple of steps from the following Documentation:
https://www.digitalocean.com/docs/images/container-registry/how-to/use-registry-docker-kubernetes/
Anyway, if you try to manually login using the following method, does it work :
docker login -u ZDRhYzzzz -p ZDRhYzzzz registry.digitalocean.com
Where you’ll need to specify the user and password manually.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.