Docker Networking Crash Course

  Рет қаралды 77,495

Hussein Nasser

Hussein Nasser

Күн бұрын

Docker is a container management engine. In this video I explore the networking side of docker, how to create network, connect containers to a network and connect two networks together.
0:00 Intro
0:30 Spin up a simple container
5:15 Build a custom image
9:00 The Bridge network
13:30 Why can’t I ping hostnames in Bridge network
18:00 Create a Custom network
30:00 Create two networks
39:00 Connect the two networks
Scripts
github.com/hnasr/javascript_p...
Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
network.husseinnasser.com
Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
database.husseinnasser.com
Introduction to NGINX (link redirects to udemy with coupon)
nginx.husseinnasser.com
Python on the Backend (link redirects to udemy with coupon)
python.husseinnasser.com
Become a Member on KZfaq
/ @hnasr
Buy me a coffee if you liked this
www.buymeacoffee.com/hnasr
Arabic Software Engineering Channel
/ @husseinnasser
🔥 Members Only Content
• Members-only videos
🏭 Backend Engineering Videos in Order
backend.husseinnasser.com
💾 Database Engineering Videos
• Database Engineering
🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast
Gears and tools used on the Channel (affiliates)
🖼️ Slides and Thumbnail Design
Canva
partner.canva.com/c/2766475/6...
Stay Awesome,
Hussein

Пікірлер: 114
@hnasr
@hnasr Жыл бұрын
Learn the fundamentals of network engineering, get my udemy course click the link for a discount coupon network.husseinnasser.com
@ozoniuss1463
@ozoniuss1463 Жыл бұрын
When I first saw that this course was from you, I bought it instantly from a crowded bus on my phone. I didn't even search for other alternatives because I think we are very like-minded when it comes to computer science. I feel like there aren't many developers like you who are just curios about how things work and want to have a clear understanding of the technologies they're using. I just hate when I have to quickly learn some new technology and not have the time to study it; only when things break you realize how little you know about it. I barely started section 2 and already love it. I'll definitely make sure to leave a review when I'm done.
@hnasr
@hnasr Жыл бұрын
@@ozoniuss1463 thank you! And I agree learning a new tech is not hard, understanding how actually it works is what interests me.
@shashaanklearns
@shashaanklearns Жыл бұрын
Hey, Hussein. Can you also make a video on k8s architecture and it's networking?
@TheGaneshkumawat
@TheGaneshkumawat Жыл бұрын
+1 for this
@11maxed11
@11maxed11 Жыл бұрын
+1
@essjay1568
@essjay1568 Жыл бұрын
+1
@Awcator
@Awcator Жыл бұрын
+1
@hnasr
@hnasr Жыл бұрын
👍 good idea
@A.K_1998
@A.K_1998 4 ай бұрын
I've recently learned more about docker and worked with docker compose and network but I had this question that how could two container in different network communicate to eachother and I couldn't figure it out until I've seen your video and finally I got it. you're really cool and the concepts that you explain are really the hard things that one could think but not understand easily. Excellent work. please make more videos like this. Thank you Hussein Nasser!🙏
@yashlearnscode5502
@yashlearnscode5502 Жыл бұрын
Hussein might be the best teacher I've come across. Whenever he speaks, I learn something new every damn time. +1 to all the people commenting for the K8s series, I'd even pay for a course on K8s if it was exclusively taught by you.
@razorr1920
@razorr1920 Жыл бұрын
One of my most cherished KZfaqrs. Dude you are awesome for all that you teach the community.
@randxalthor
@randxalthor Жыл бұрын
Oh this is excellent. Going on my watchlist for work for Monday! Thank you for providing such practical and high quality content. You're providing such strong backbone references for the backend developer knowledge base.
@prathamsinghal5261
@prathamsinghal5261 Жыл бұрын
First thing first.. I have followed your tutorial command by command and it's very amazing to know the things by having hands on. Secondly, please continue this as the series/playlist and also please include K8s Networking as well(I know it will take huge amount of efforts but that will be really appreciable).
@ameedjamous8304
@ameedjamous8304 Жыл бұрын
Great stuff Hussein. Thanks for putting this video together. Looking forward to your next docker video.
@RazoBeckett.
@RazoBeckett. 6 ай бұрын
The fun while exampling that means he really enjoys and loves what he do .. really appreciate man great video even after 1 year.
@daedwill
@daedwill Жыл бұрын
Love your videos Hussein, you tackle everything from a first principle perspective.
@kalmabrooks978
@kalmabrooks978 Жыл бұрын
Enjoyed every min of this video!!! This was FIRE 🔥, especially how you narrated the vid was funny. Kept me engaged 👌🏾
@jasonjente6793
@jasonjente6793 Жыл бұрын
Really enjoyable content and very high quality, many things got clarified along the way! Thanks for the clarifications!
@aba-nascu
@aba-nascu Жыл бұрын
Thank you Sir! Keep the awesome work. This almost 50 minutes video went so fast, didn't even blink :-)
@belalkazmi
@belalkazmi Жыл бұрын
Hussein, I am so happy that I found your channel. I listen to your podcast while I go for walking. Got your udemy course as well. Hope to get more such vids from you. You are a Genius ❤
@anonymousvevo8697
@anonymousvevo8697 20 күн бұрын
The video i was looking for a long time ago, Thanks alot
@christianibiri
@christianibiri Жыл бұрын
This video is awesome! very very detailed explanation about how container network works.
@sevensolutions77
@sevensolutions77 10 ай бұрын
Thx Hussein, this is one of the best Docker Networking videos 👍
@bobhutchinson3638
@bobhutchinson3638 2 ай бұрын
Great explanation in addition for networking articles
@empuraan4710
@empuraan4710 Жыл бұрын
300k subs... congrats and keep going HN !
@nshukla6
@nshukla6 Жыл бұрын
One of the best video, a tiny error in image diagram where you swap the network frontend from backend and vice-versa
@thePribs
@thePribs Жыл бұрын
This was amazing, really enjoyed the tutorial
@vivarantx
@vivarantx Жыл бұрын
I just found this amazing channel, you are impressive. Subscribed!
@galeyal2
@galeyal2 Жыл бұрын
Awesome video ! very nice and simple to understand !
@HarshKapadia
@HarshKapadia Жыл бұрын
Awesome video, Hussein! Thank you so much!
@kirglow4639
@kirglow4639 Жыл бұрын
Your videos are a treasure trove. Thank you
@shazzad
@shazzad 10 ай бұрын
Thank you very much for making the video. Learned very important thing about networking.
@BinaryIgor
@BinaryIgor Жыл бұрын
Love these deeep dives, there are so rare on youtube ;)
@FelipeMontecristo
@FelipeMontecristo Ай бұрын
Great!!! thank you very much for the tutorial
@hurlimanjumamuratova2425
@hurlimanjumamuratova2425 8 ай бұрын
thank you so much, really enjoyed☺
@adam8685
@adam8685 Жыл бұрын
Awesome video Hussein. Would love to see some content for Docker Compose too, as that's mainly how I work with Docker
@kiranbhanushali7069
@kiranbhanushali7069 Жыл бұрын
best video for docker networking
@MyDiscovery2021
@MyDiscovery2021 11 ай бұрын
This is a really excellent video. thank you
@anmolbhatia05
@anmolbhatia05 Жыл бұрын
Dude, take a bow!
@zuggrr
@zuggrr Жыл бұрын
I learned so much ! thanks
@AshenafiDemisse
@AshenafiDemisse Жыл бұрын
thanks Hussein 👍 it's awesome 👌
@pixelbogpixxelbog2090
@pixelbogpixxelbog2090 Жыл бұрын
1010/1010 Video. Really amazing work :)
@shaheerzaman620
@shaheerzaman620 Жыл бұрын
this was such a nice tutorial
@dhavalsuthar1
@dhavalsuthar1 Жыл бұрын
Awesome 🥰💫
@ayuobmousa6589
@ayuobmousa6589 Жыл бұрын
Awesome Hussein
@TheGaneshkumawat
@TheGaneshkumawat Жыл бұрын
Man, you are awesome!!!
@amrfarrouh
@amrfarrouh Жыл бұрын
Awesome, thank you
@chris0628
@chris0628 Жыл бұрын
Awesome content 👍🏽
@matiasbpg
@matiasbpg Жыл бұрын
great tutorial! I've learn a lot of networking watching your videos, thank you. About the DNS, is it possible to add an IP route rule to use the gate way container as the DNS for both S1 and s2?
@darrenhorwitz1860
@darrenhorwitz1860 Жыл бұрын
Hey , great tutorial ! Could you please 3xplain how gw container was able to forward the packets without any further configuration on the container ? I understand it has interfaces in both subnets and the rtb changes for s1 and s2 to use gw as gateway for those respective cidr ranges , but I still don't understand how it was able to automatically for the packets ...
@ragsbigfella
@ragsbigfella Жыл бұрын
fantastic
@tesla1772
@tesla1772 Жыл бұрын
Awesome video as usual. One request, can you also add links to artice or documentation or basically what method you follwed to learn what you teach so that we will also get some idea on how to start learning these concepts on our own
@homerdev8262
@homerdev8262 Жыл бұрын
that's the magic
@alwaha4283
@alwaha4283 11 ай бұрын
Good tnx habibi 🙂
@JohnZakaria
@JohnZakaria Жыл бұрын
For everyone looking at the Dockerfile. You should avoid creating too many stages within your docker file to keep your image small. Each command creates an image that you can explore (i.e) you can even intermediate images that lead to the creation of your docker image (like visiting your image after installing iproute2).
@prathamsinghal5261
@prathamsinghal5261 Жыл бұрын
Of course we can do that! But Best practices can be followed at the production level but at the tutorial level beginners also might watch this stuff do for the simplicity he did that (I think)
@shyandsy
@shyandsy Жыл бұрын
thank u so much
@jessysingh7529
@jessysingh7529 Жыл бұрын
Hey Hussein - Can you make a video on how to look at the Github code of large open source modules? For ex: If I want to understand how does the get method works under the hood in the node js module, what steps I need to go through and land at the right place.
@siddhantchavan1370
@siddhantchavan1370 Жыл бұрын
3:40 Docker doesnt spin up a vm. It uses namespaces feature in linux to spin up containers.
@sadness7897
@sadness7897 Жыл бұрын
If you want to know how something works,you need to get your hands dirty. Thanks for the video. I never tried doing something like that, adding more info to my brain. Blessings.
@markokraljevic1590
@markokraljevic1590 Жыл бұрын
can you make video about running virtual router inside docker container and use it to route physical local network? maybe openwrt
@fullnaoufal
@fullnaoufal Жыл бұрын
Hey Hussein Thanks for this content. I have a question, why you never gire a comparaison between open source database like postgresql, mysql and property database like sql server, may be I'm wrong ? 😊
@jaswalkiranavtar
@jaswalkiranavtar 7 ай бұрын
For propagating dns, you might just have to add the entry of other network's dns server to /etc/resolve.conf to container in first network
@vinhlochuynh9480
@vinhlochuynh9480 Жыл бұрын
I used ubuntu before and still got confused about networking when using docker in macos. This is very useful
@amineabarda4103
@amineabarda4103 Жыл бұрын
Thanks
@BestPlayer07
@BestPlayer07 Жыл бұрын
Hi hussain, could it be possible if we don't create the gw container. But instead we create just the gw network and attach both of these containers s1 and s2 to that network?
@dasten123
@dasten123 Жыл бұрын
is that how docker-compose does it in the background?
@raedbettaieb
@raedbettaieb Жыл бұрын
34:40 that one annoying Mosquito when you trying to sleep
@kamandejohn7330
@kamandejohn7330 Жыл бұрын
Good job Hussein ... do something on k8
@seattledude2022
@seattledude2022 Жыл бұрын
22:10 The only course that the servers are called "these suckers" 😂
@39zack
@39zack Жыл бұрын
But can you have an isolated network that can't directly connect to the internet through the host bridge but then use another network as gateway?
@devyetii
@devyetii Жыл бұрын
1. Again and again, thanks for your always-great content 2. Isn't the security issue with exposing the BE network to the FE network still there because of using the gateway container? How to mitigate this ? 3. Looks like your visit to Bahrain added more if the Arabic taste to your accent with all the stressed 'R's. 😂 .. Hope you visit Egypt anytime soon and sure I'll be so happy to meet you 😃 4. I have very low experience with stuf written in yaml but I find it much easier and cleaner than JSON, why don't you like it ?
@zeeshawnali7187
@zeeshawnali7187 Жыл бұрын
Could you cover more cloud technologies from the Big 3 providers?
@elijahhadasevich7907
@elijahhadasevich7907 Жыл бұрын
Mr.Hussein, if you happen to have a time could you please make a video or a paid course on how to design and build highload backend architecture and all that kind of stuff? For example how to build architecture which could support 10-50k requests per second, thanks for your work!
@mayikx
@mayikx Жыл бұрын
Waww new KZfaq app
@Samuftie
@Samuftie Жыл бұрын
22:42 "I don't know if it stands for interactive terminal. This is how I remember stuff. You're going to see weird stuff." that's funny!
@Samuftie
@Samuftie Жыл бұрын
25:32 "they can curl each other!... curl each other?"
@abdulmobeen-developer
@abdulmobeen-developer Жыл бұрын
Can you make a video on - Docker & Microservices
@mnj1
@mnj1 Жыл бұрын
What actually is the "bridge" in Docker? Is it the same thing conceptually as en.wikipedia.org/wiki/Network_bridge? Does it connect a host to the containers on a level-2 layer of OSI? If so, how does a bridge have an IP address? That Docker bridge sounds more like a router. @Hussein, could you explain that?
@Alwaysiamcaesar
@Alwaysiamcaesar 21 күн бұрын
Why does your command prompt say nhttpd? Are you not building the container on your local machine?
@AllenIve3
@AllenIve3 Жыл бұрын
What about accessing localhost from a container ? In linux it’s ok but not mac and windows. Can someone explain that ?
@AllTypeGaming6596
@AllTypeGaming6596 Жыл бұрын
Please make videos on k8s
@fltngmmth
@fltngmmth Жыл бұрын
you have to make the network attachable to new containers with the ‘--attachable’ option when you want to add services to an existing external network. And with overlay network options it gives you more flexibility. Especially when networking containers to swarm services. Edit: that is if i understand your frustration with restrictive docker. Im a docker shill…
@sadiqali9156
@sadiqali9156 9 ай бұрын
Thanks, Hussain, amazing as always! - One thing I'd mention is that I can run apt-get commands by exec the container as root user "sudo docker exec -u 0 -it bash" if you do not want to install them in the Dockerfile. - Can you explain how to allowt he container call the localhost, in my case I want the application in my container to interact with API that runs locally in my machine
@engineeranonymous
@engineeranonymous Жыл бұрын
As Hussein highlighted in video unlike Mac or Windows, Docker do not run on hypervisor on Linux so on Linux some of command results might change. Its normal.
@eduardoromao
@eduardoromao 11 ай бұрын
For local develpment I need to allow my host network to know/see and bridge network. How can I configure my network to do that? I use Ubuntu 22.04 and in Ubuntu 20.04 I can do that by default. In my case I have a "mybridgenetwork" and have a defined ipam. My containers share this network and each container has a specific IPV4 IP. From my host, I configure my hosts file to redirect the containers IP to specific URL (it's a complex environment). Now in Ubuntu 22.04 I can't do that 😢 Someone have a magic trick?
@stunning-computer-99
@stunning-computer-99 Жыл бұрын
Kubernetes Networking please!
@widyguilias3738
@widyguilias3738 Жыл бұрын
Can you make video about whatsapp outage, please?
@ivandrofly
@ivandrofly Жыл бұрын
3:30 Docker0 37:05 router*
@muhammadsubhan8333
@muhammadsubhan8333 6 ай бұрын
+ 1
@joostvhts
@joostvhts Жыл бұрын
Hey, what happened to whatsapp yesterday?
@tornado-zex47
@tornado-zex47 4 ай бұрын
back to islam brother
@Lokra_
@Lokra_ Жыл бұрын
Hahaha what a joke. Run some commands for a week, then make a crash course ahahahahhhahahaha
@programminginterviewsprepa7710
@programminginterviewsprepa7710 Жыл бұрын
Pleae K8S networking tutorials and general k8s tutorials Save Our Souls Nasser!! ❤😢😢🥺🥺🥹🥹
How DNS and DHCP Servers Communicate (With wireshark)
29:40
Hussein Nasser
Рет қаралды 14 М.
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Каха ограбил банк
01:00
К-Media
Рет қаралды 11 МЛН
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 105 МЛН
Docker Tutorial for Beginners [FULL COURSE in 3 Hours]
2:46:15
TechWorld with Nana
Рет қаралды 5 МЛН
Homelab Setup Guide - Proxmox / TrueNAS / Docker Services
2:44:39
Matthias Benaets
Рет қаралды 130 М.
Threads and Connections | The Backend Engineering Show
49:30
Hussein Nasser
Рет қаралды 63 М.
BGP Deep Dive
2:10:28
Kevin Wallace Training, LLC
Рет қаралды 176 М.
Design Patterns Master Class | All Design Patterns Covered
3:46:08
Daily Code Buffer
Рет қаралды 50 М.
How Discord Stores Trillions of Messages | Deep Dive
1:08:33
Hussein Nasser
Рет қаралды 173 М.
VM Networking ( Libvirt / Bridge )
43:39
octetz
Рет қаралды 74 М.
Kubernetes Course - Full Beginners Tutorial (Containerize Your Apps!)
2:58:01
WebRTC Crash Course
1:10:06
Hussein Nasser
Рет қаралды 221 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 1,5 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,9 МЛН