Docker Networking Tutorial // ALL Network Types explained!

24 Comments



Docker Networking Tutorial where I explain all network types, that you need to know! I show you how and when you should use the different network types and what you need to consider.
Based on the official Documentation: https://docs.docker.com/network/

Watch Next:
➡️ Kubernetes Tutorial: https://youtu.be/glFE28QT1HI

❓ Get started with Docker: https://www.youtube.com/watch?v=RAaU-…

Teleport-* (free open-source server management):
👉 http://goteleport.com/thedigitallife

________________
BECOME A MEMBER AND BE A CODE HERO!

🗨️ Get Help & Chat: https://discord.com/invite/bz2SN7d

🥳 Support me: https://www.youtube.com/channel/UCZNhwA1B5YqiY1nLzmM0ZRg/join

________________
FOLLOW ME EVERYWHERE:

🐦 Twitter: https://twitter.com/christian_tdl
📷 Instagram: https://instagram.com/christian_tdl
👨‍💻 GitHub: https://github.com/xcad2k
🌍 Read my Blog: https://www.the-digital-life.com
🖥️ My Equipment: https://kit.co/thedigitallife

________________
⏱️ TIMESTAMPS:

00:00 – Introduction
01:02 – Why should you configure Docker Networks?
01:55 – The Default Bridge Network
04:20 – The Custom Bridge Network
08:52 – Bridge Networks and Container Isolation
09:52 – The Host Network
10:49 – When to use MACVLANs or IPVLAN?
12:38 – The MACVLAN Network
17:55 – The IPVLAN Network
19:05 – Summary and what about Overlay Networks?

________________
All links with “*” are affiliate links.

source

24 Comments
    • blank
      sidharthan p
      May 05, 2022 12:02 pm Reply

      Great video.

    • blank
      mr. Wayfarer
      May 05, 2022 12:02 pm Reply

      Much appreciated, sir. Home Assistant and Plex containers conflict listening the same 1900 port while running on bridge connection fe

    • blank
      JAKE DENG
      May 05, 2022 12:02 pm Reply

      very useful video, I solved one of my docker issues right after watching this!

    • blank
      Majid Ali Khan Quaid
      May 05, 2022 12:02 pm Reply

      Clear and too the point, that's what I was looking for !! Thank you so much <3

    • blank
      Joseph Lamoree
      May 05, 2022 12:02 pm Reply

      This was very helpful. Thank you!

    • blank
      Daniel Slabodar
      May 05, 2022 12:02 pm Reply

      Wow. Just wow. Thank you!

    • blank
      Brandon Eadie
      May 05, 2022 12:02 pm Reply

      I'm trying to figure out how to use my 5 external public ip addresses, and have my router see lets say 5 containers from docker. Which I would give each one its own external public ip address. Would you have any idea how to achieve this?

    • blank
      JMT Freelancer
      May 05, 2022 12:02 pm Reply

      Hello, Your video is what i needed . But I woul dlik eto do the same on MAC OSX . what is the solution to have two static IP on my HOST OSX?

    • blank
      Filip Seman
      May 05, 2022 12:02 pm Reply

      simple explanation even with examples, great stuff!

    • blank
      Lakshmi Narasimman V
      May 05, 2022 12:02 pm Reply

      it would be helpful if you can make a dedicated video on overlay networks and try to install Traefik and Portainer in swarm mode.

    • blank
      Hewa S.
      May 05, 2022 12:02 pm Reply

      Moin Moin,
      Best explanation ever! keep up.

    • blank
      Son Goku ssj4
      May 05, 2022 12:02 pm Reply

      Wow, didn't k ow about macvlan. So it's possible to run both Traefik (for docker apps) and Nginx (for non-docker apps to reverse proxy) at once so that both listen to port 80?

    • blank
      J W
      May 05, 2022 12:02 pm Reply

      Mavclan. Only supported on Linux hosts

    • blank
      Armin Vand
      May 05, 2022 12:02 pm Reply

      I have two docker machine on same host one on overlay network of swarm and another one is on bridge network so which rules for my iptables or route i should write that my both container can communicate each other?

    • blank
      dakzer five
      May 05, 2022 12:02 pm Reply

      Thank you for this refresher on docker networking. Has fixed my issue with trying to get HADR for Sql Server instances running in docker

    • blank
      Finbarr Aherne
      May 05, 2022 12:02 pm Reply

      This is exactly what I was looking for! Thank you for the clear and concise explanations for all the different network configs, and also for stepping through each.

    • blank
      Sven Doe
      May 05, 2022 12:02 pm Reply

      Und jetzt das Video bitte noch Mal in Deutsch.

    • blank
      David Marull
      May 05, 2022 12:02 pm Reply

      Hello! awesome videos as always, I'm struggling to achieve two docker hosts on a physical server that has two ethernet ports, on of the hosts should expose a service in one of the ethernet ports and the other host should connect and receive data from services in the other port, this is an overlay network use case for what it looks like, or is there another way?

    • blank
      One Human Wasted
      May 05, 2022 12:02 pm Reply

      How can I run netshoot out of Portainer? It immediately stops itself after cration/starting

    • blank
      Khandaker Shahriar Amin
      May 05, 2022 12:02 pm Reply

      I like your t-shirt

    • blank
      Glen Millard
      May 05, 2022 12:02 pm Reply

      Now I have watched your video – it was very informative. Thanks much for this. Much appreciated! 😎😎

    • blank
      Glen Millard
      May 05, 2022 12:02 pm Reply

      I just started watching and I hope this lands nicely! You sound exactly like 'Klaus' on 'American Dad'
      I love the show, by the way.
      Now I'm going to watch your video!

    • blank
      J D
      May 05, 2022 12:02 pm Reply

      how do I manage the dns settings in docker? I’ve been getting a timeout error every time I attempt to pull the HOOBS image on my raspberryPi 4
      I have portainer installed and running

    • blank
      BufferOverflow
      May 05, 2022 12:02 pm Reply

      I have an expressjs app that talks to FFmpeg image that resides on another container, how do I send commands without having to create a web server in the FFmpeg container. Thank you

Leave us a comment