Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy docker images to heroku

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'

like image 856
sakdipat ontoum Avatar asked May 22 '20 16:05

sakdipat ontoum


People also ask

Can I deploy Docker containers on Heroku?

Heroku Container Registry allows you to deploy your Docker images to Heroku. Both Common Runtime and Private Spaces are supported. If you would like Heroku to build your Docker images, as well as take advantage of Review Apps, check out building Docker images with heroku. yml.

How do I push an image into Heroku?

To deploy your Docker image to Heroku, simply run one command in the directory of your Dockerfile: $ heroku container:push web === Building web Step 1 : FROM alpine:latest ... Successfully built 74bab4bf0df3 === Pushing web The push refers to a repository [registry.heroku.com/yourapp/web] c8821d626157: Pushed ...

Should I use Docker with Heroku?

I would recommend using Heroku with Docker to future-proof your web application so you don't have to perform the switch as I did.

Where can I deploy Docker images?

You can deploy a container using the Google Cloud console, the gcloud command line or from a YAML configuration file.


1 Answers

Login in the Docker Registry before pushing

heroku container:login
like image 67
Beppe C Avatar answered Sep 21 '22 20:09

Beppe C