Unable to login to registry via `doctl registry login` - docker-credential-doctl executable not found

I am using doctl version 1.57.0:

> doctl version
doctl version 1.57.0-release
Git commit hash: 497c900

I installed doctl using the GitHub download method for Linux (Ubuntu 20.04).

When I run the command to log in to the registry I get the following error:

> doctl registry login

Logging Docker in to
Error: error storing credentials - err: exec: "docker-credential-doctl": executable file not found in $PATH, out: ``

I have also tried installing via snap and I get the exact same problem.

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.


Can you use doctl for any other purpose like getting information about your account ?

doctl account get

Does it work or you get another error message ?