Solution for the error "no basic auth credentials" when pushing a Docker container to Heroku

problem

When I try to push a Docker container to Heroku with the command " heroku container: push web ", the following error occurs.

no basic auth credentials
 !    Error: docker push exited with Error: 1

solution

Log in to heroku with the following command.

heroku container:login

reference

  1. stackoverflow:『Deploy docker images to heroku』

Recommended Posts

Solution for the error "no basic auth credentials" when pushing a Docker container to Heroku
Error response from daemon: conflict: Conflict when trying to create Docker container, so solution
[Docker] How to update using a container on Heroku and how to deal with Migrate Error
About the solution of the error that occurred when trying to create a Japanese file of devise in the Docker development environment
The story of pushing a Docker container to GitHub Package Registry and Docker Hub with GitHub Actions
Wait for the container service to start with docker healthcheck
A validation error occurred when saving to the intermediate table.
When requested access to the resource is denied when pushing with Docker
Rails tutorial Resolved an error deploying to Heroku, so note the solution
[Docker] How to build when the source code is bind-mounted on the container
Error when trying to use heroku command
How to display the amount of disk used by Docker container for each container
Up to the point of launching a Docker container built using RedHat Quarkus
[Error resolution] Occurs when trying to build an environment for spring with docker
How to solve when you cannot connect to DB with a new container because the port is assigned to the existing docker container
How to check the logs in the Docker container
How to get a heapdump from a Docker container
A note when the heroku command becomes unavailable
When deploying to Heroku, OpenApp causes an error
I made a Docker container to run Maven
[Docker for Mac] Deal with Credentials store error
Build a container for Docker x Laravel phpMyAdmin
[No Method Error] Solution when new action occurs
[Docker] How to see the contents of Volumes. Start a container with root privileges.
A memo to do for the time being when building CentOS 6 series with VirtualBox
Docker for Windows: MySQL container does not start when migrating from Hyper-v to WSL2
Building a Docker environment on EC2 (ArgumentError: Missing `secret_key_base`, Mysql2 :: Error :: ConnectionError: Access denied for user'root'@ '172.18.0.4' (using password: NO) solution)