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.1
1.2
1.3
1.4
1.5
2.1
2.2.
2.3.
Whole pattern got same problem 'no basic auth credentials'
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.
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 ...
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.
You can deploy a container using the Google Cloud console, the gcloud command line or from a YAML configuration file.
Login in the Docker Registry before pushing
heroku container:login
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With