9

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'

Beppe C
  • 11,256
  • 2
  • 19
  • 41

2 Answers2

30

Login in the Docker Registry before pushing

heroku container:login
Beppe C
  • 11,256
  • 2
  • 19
  • 41
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

Danilo Moura
  • 191
  • 4