How to deploy Hello world to Heroku using docker
Here is the heroku official doc and steps in this article are my walk through.
Check if you have docker installed properly
Enter docker ps in your terminal and you will see container info if you have installed docker.
>> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESCheck if you can login as heroku user
>> heroku login
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://...
Logging in... done
Logged in as xxx@gmail.comLogin to heroku docker
>> heroku container:login
Login SucceededCreate an app on heroku
You can double check on your heroku account

Clone helloworld to your local
Connect you local git to remote heroku git
Build the image and push to Container Registry
Then release the image to your app
Now open the app in your browser
Logout heroku container
Last updated
Was this helpful?