2

While following Heroku's docs for how to push a docker image to their registry, I keep running into this error:

> docker push registry.heroku.com/<MY-APP>/web cd Using default tag: latest The push refers to repository [registry.heroku.com/<MY-APP>/web] e0d052f1dc62: Preparing 41ec0e96eb83: Preparing d081ada49467: Waiting 73c3e7ef7bc6: Waiting unauthorized: authentication required 

I continue to get a Login Succeeded whenever I try to use docker login, so I'm not sure what the issue is.

I tried to debug using the Docker Daemon logs but those weren't helpful.

1
  • After hours of struggle I found the solution and have added here. Commented Jul 15, 2023 at 19:09

1 Answer 1

2

Turns out I was bitten by what I'd consider to be a bug with the Heroku registry that stems from a debate about how to deny the user properly when they're logged in but try to access a resource that either doesn't exist or isn't theirs so that sensitive info, like the existence of a resource, isn't exposed (check this summary if you're interested).

TL;DR - Heroku shuold be sending a 404 but send a 401 instead - Go make the app via the UI and then try again.

Sign up to request clarification or add additional context in comments.

2 Comments

May god bless you because I was about to try some nonesensical stuff
@jose-v Hey, the fact that one person found this helpful means it was worth posting! Cheers!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.