Deploy docker images to heroku
Asked Answered
H

2

10

enter image description here

enter image description here

I try to push container to Heroku by this command:

sudo heroku container:push web --app <my-heroku-app>

But I got this error "no basic auth credentials".

How to solve this??????

There are all of step from login to push docker images to heroku

  1. first pattern

1.1 enter image description here

1.2 enter image description here

1.3 enter image description here

1.4 enter image description here

1.5 enter image description here

  1. second Pattern

2.1 enter image description here

2.2. enter image description here

2.3. enter image description here

Whole pattern got same problem 'no basic auth credentials'

Human answered 22/5, 2020 at 16:32 Comment(0)
C
33

Login in the Docker Registry before pushing

heroku container:login
Calliecalligraphy answered 22/5, 2020 at 16:49 Comment(6)
I login and use command for push container already. But I got same problem same as before.Human
You could try to push with docker command docker push registry.heroku.com/app/web (btw you need both heroku login and heroku:container login)Calliecalligraphy
it have same problem :(Human
Post all your steps (from login to push) and output, there must be something that doesn't go as expectedCalliecalligraphy
I added my step.Human
Looks all fine to me :-( I would try push with docker command docker docker push registry.heroku.com/app/web, not sure if it makes a difference. You can also try to logout/login again, I really dont know why your steps fail, sorryCalliecalligraphy
P
6

There are two ways to login into the registry, the first one is:

heroku container:login

but what worked for me was the following way:

docker login --username=<your username> --password=$(heroku auth:token) registry.heroku.com

See the docs

Pekan answered 1/7, 2020 at 21:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.