Question

Can't login Digitalocean container registry

I tried three methods to login to container registry from a droplet, but they are not working.

Tried methods

  1. doctl registry login

It’s was no error and stored credentials to .docker/config.json, but can’t pull my image on registry.

  1. Create credentials json with control panel and copy it to .docker/config.json

It’s same as 1

  1. docker login registry.digitalocean.com

Got error Error response from daemon: Get https://registry.digitalocean.com/v2/: unauthorized: authentication required

How do I login the registry?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi, I have solved this problem.

in this link: [https://www.digitalocean.com/docs/container-registry/how-to/use-registry-docker-kubernetes/]

first not (ligh blue box): the user and pass must be the same string,

Api Token that you created in this link [https://cloud.digitalocean.com/account/api/tokens?i=80f8d9] (personal access token, which is shown just once)

The solution:

docker login -u {personal-access-token} -p {personal-access-token} registry.digitalocean.com

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

Did you make sure that docker is running on the machine ?