Create Docker Container with Go App • #golang #docker #containers #api

preview_player
Показать описание
In this video, I'll show you how you can add your Go apps into Docker containers so the code can run from virtually anywhere!

🔴 Subscribe today!

👋 Connect w/me:

__________________________________________

🖥 My Rig

__________________________________________

🎥 Streaming Gear
__________________________________________

⏯ My Coding Series'

__________________________________________

📚 Other Excellent Learning Resources

Please note that links in this description may or may not be affiliate links, where I make a small commission if used.

Thanks For Watching!
Рекомендации по теме
Комментарии
Автор

This is simply the wrong way to dockerize go apps. Like, exactly how you should NOT do it. Go programs have the benefit of being a single dependency-less executable (if no cgo is used), meaning they can (and should be) run in a container made from scratch barely larger than the binary itself. Your image size is beyond 700 MB for a simple hello world app. This is ridiculous - not even my full blown Python apps bundle into such big images. The docker image is made for building your app in multi-stage docker builds. There's literally no downside of building an golang image correctly, even for testing.

comedyclub
Автор

This may be one of the clearer and most informative video ever in the programming sphere. Your explanation are top-notch, the editing is good and the pace is perfect. Thanky ou so much for this, this is exactly what I needed. Instantly subscribed.

Bukosaure
Автор

Well done. Beginners like myself are well served by this.

speedTurtle
Автор

I went through 5 different docker beginner videos. this by far is the BEST. concise, to the point and gets the job done. THANK YOU!!

beastunleased
Автор

i was a bit confused as i have to start a project from tomorrow using golang and docker. but thanks to you i now got the idea. Thanks alot

faisalmushtaq
Автор

Worked like a charm. :) Thanks for the straight ahead lesson and insights!

jonahbutler
Автор

Can you maybe make a video on how to run it with docker compose without installing go locally and developing inside container ?

sujezz
Автор

it would be great to see a video of a complete CI/CD pipeline with docker go .. Great video BTW

PhanorColl
Автор

Excellent video, fast paced with lots of info

annusingh
Автор

Why not copy whole working directory instead of just main.go and go.mod?

brychanmd
Автор

5:45
6:09 install *gin* package
6:42 create router
8:00
8:49

ruixue
Автор

Please what exetensions are you using to send request

Ochecodes
Автор

why did you execute go get on your local machine?

satotakeru
Автор

Thanks a lot!

What if im using an external api like OpenWeatherApi to create a simple cli app. Is there anything I have to do different in my docker file to take the api key into account?

lange
Автор

hi your videos are great, can you please make a video where you can load a config from viper and dockerise it.

rakeshojha
Автор

What's the plugin for sending the http requests?

thechaoslp
Автор

Very nice video. Why did you not put EXPOSE 8080 in the Dockerfile?

brandon_wallace
Автор

Why would I copy the source files to the container and not the compiled app?

axMfqTI
Автор

So many ads. I watched 30 second ads, and then 5 seconds into the video, another 30 seconds ads came up 😡

MR-list
Автор

I was expecting more of dockerizig go-app+mongo dockerization. This way dockerizing is of no good.

sameergaikwad