I’m trying to push a simple docker image to the repository… But for some reason when trying to docker push it just keeps retrying and eventually authentication fails.
However then I noticed that doctl projects list
is returning a project in another team I’m in. How do I switch teams?? Is this the ‘context’ for doctl, in any case that does not seem to work anyway if I have the same “context” name as “team”…
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!
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
What you could do is use the
doctl account get
command to retrieve details for the account profile details and also use thedoctl auth list
to list the named authentication contexts that you created withdoctl auth init
.If you have multiple contexts, and you need to switch to another one, you can use:
To ensure that you’re in the right context (i.e., team or personal account), you can run:
After ensuring that you’re in the right context with the appropriate permissions, you can try pushing your Docker image again.
If you’re still facing issues, remember to check the following:
docker login
.registry.digitalocean.com/<your-registry-name>/<image-name>:<tag>
. Ensure that you’re using the correct registry name.Let me know how it goes!
Best,
Bobby