How to Deploy a Docker Image on Heroku?
This is an even easier process than you know. Frankly, I was intimidated when I first started because it's hard to find resources on this subject.So, without wasting any time let's get started:first…
İçindekiler 0%
This is an even easier process than you know. Frankly, I was intimidated when I first started because it's hard to find resources on this subject.
So, without wasting any time let's get started:
first thing you need to do is download heroku-cli from HEROKU-CLI website
heroku{codeBox}in the terminal.
Then we have to type:
heroku login{codeBox}to login heroku habitat.
heroku container:login{codeBox}into the terminal.
heroku create{codeBox}After this step, heroku will create a service environment and give it a random name. You can find it in the area written in lilac color in the image below. Name given to my service: guarded-wildwood-42932
heroku container:push web --app guarded-wildwood-42932{codeBox}command. The last part of the command should be the name of the random service given to you.
heroku open --app guarded-wildwood-42932{codeBox}command to access the deployed container over the Docker image and see the url. The browser will redirect you.
I hope you like. Thank you {alertSuccess}
Tartışma
Yorumlar
Bu yazıya ilk yorumu siz bırakın.
Yorum bırakın