Sign in

Got a Docker image you want to deploy as-is on Heroku? Heroku’s documentation doesn’t mention it is possible, while Stack Overflow provides an -old- partial answer. But deploying a Docker image published on the Docker registry directly to Heroku is possible. You’ll still need to get some work done on your machine, using the Heroku and Docker CLIs.

Pulling the image

The first step is to pull the image from the Docker registry (let’s call it my/image) and find its ID ( image_id ):

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

Pushing to Heroku

Providing you’re already logged into Heroku (via…

Thomas Muguet

❤︎ software, from Grenoble, France

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