Skip to content

Instantly share code, notes, and snippets.

Created Apr 13, 2021
What would you like to do?
Deploy an existing Docker image to Heroku
# Requires docker CLI and heroku CLI
# Specify here the docker image you want to deploy from Docker registry
# Specify here the name of your Heroku app
docker pull $docker_image
id=`docker images | grep $docker_image | awk '{print $3}'`
docker tag $id$heroku_app/web
docker push$heroku_app/web
heroku container:release web --app=$heroku_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment