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

Got error Error response from daemon: Get unauthorized: authentication required

How do I login the registry?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi, I have solved this problem.

in this link: []

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

Api Token that you created in this link [] (personal access token, which is shown just once)

The solution:

docker login -u {personal-access-token} -p {personal-access-token}

Hi @lon9,

I’ve had similar issues as well, in my case I missed a couple of steps from the following Documentation:

Anyway, if you try to manually login using the following method, does it work :

docker login -u ZDRhYzzzz -p ZDRhYzzzz

Where you’ll need to specify the user and password manually.

Regards, KFSys

DO docs are garbage. Thanks Ion9 for clarifying how you accessed the registry. I’m almost ready to jump ship and just use AWS. DO has some of the worst and most inconsistent docs I’ve ever used. So sad…

Hi, Can anyone help me? I can login using docker login but cannot login with doctl. I cannot pull the image from private registry in DO.

$ doctl registry login Logging Docker in to Error: GET 412 registry not configured for user

$ docker login Authenticating with existing credentials… WARNING! Your password will be stored unencrypted in ~/.docker/config.json. Configure a credential helper to remove this warning. See

Login Succeeded

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