Deploying an existing Docker image to Heroku

Pulling the image

docker pull my/image
docker images | grep my/image | awk '{print $3}'

Pushing to Heroku

docker tag image_id registry.heroku.com/my-heroku-app/web
docker push registry.heroku.com/my-heroku-app/web

Deploying!

heroku container:release web --app=my-heroku-app

Automatizing

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store