Day-28 | Docker Networking | Bridge vs Host vs Overlay |Secure containers with custom bridge network

Поділитися
Вставка
  • Опубліковано 21 сер 2024

КОМЕНТАРІ • 184

  • @abhijitgupta123
    @abhijitgupta123 Рік тому +38

    I have taken many courses from Udemy and all. But I must say this is the best course so far on Devops. Very simple way to explain lot of new things, concepts. Loved this 45 days devops courses. Absolutely awesome.

  • @vivekgautam9766
    @vivekgautam9766 20 днів тому +3

    Dammmmmmmn... Those practicals were really amazing all concepts are clear.. Far better than theory.

  • @traptithakur7399
    @traptithakur7399 3 місяці тому +5

    I purchase course from udemy and tried to understand docker networking but it was not clear to me. Thank to Abhishek sir for best and bestest explanation.😊

  • @sidindian1982
    @sidindian1982 4 місяці тому +3

    Sir your Explanation on Secure + Bridge network + practical Example is just awesome .... 🙂

  • @TechTrail-q9ll
    @TechTrail-q9ll 6 днів тому +1

    Wow, thank you Abhishek, you make everything look so easy.

  • @vback4238
    @vback4238 Рік тому +11

    Thanks again to the best teacher on the internet. Viewers need to click the Like button; it doesn't cost anything!

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому +2

      Thanks alot Bhai ..
      Please keep sharing the videos

    • @ravitejamaddireddy7925
      @ravitejamaddireddy7925 2 місяці тому

      ​@@AbhishekVeeramalla hey abhi can you clear my doubt in the comment section....Hey Abhishek thanks for the wonderful explanation. I have one doubt in this time stamp 20:10 so here we are using the custom bridge to isolate the container. Here is my question -- even a custom bridge network also coming from the host right as per your diagram. How is this container secure?

    • @ravitejamaddireddy7925
      @ravitejamaddireddy7925 2 місяці тому

      @@AbhishekVeeramalla Because if any hacker reaches to the host he can reach to the container r8?

  • @goodthingstech9554
    @goodthingstech9554 Рік тому +4

    For the past couple of weeks, I was searching for a contentful DevOps channel, Thankfully I found this Master Man 🙌

  • @Cloudnp9458
    @Cloudnp9458 5 місяців тому +2

    Docker networking allows containers to communicate with each other and host system. Two scenarios,
    Container one connects to container two, Container one has isolation from container two. When you create a container. Docker creates veth, That is docker0. It allows docker container subnet to communicate with host. It is called bridge networking and it is default networking in docker. If there is no veth/docker0 the containerized application is not reachable from internet. So users will not be able to access application.
    Other ways of networking in docker..
    2. Host networking - the container will directly use network of host, bind eth network of your host. Whoever has access to host have access to container. Least secure way of networking in docker.
    3. Overlay networking when you need to create a network that is common in all the host of Kubernetes/swarm cluster.

  • @kumudchandra7635
    @kumudchandra7635 Рік тому +3

    High level Teacher /Mentor/Coach ..

  • @Cloudnp9458
    @Cloudnp9458 6 місяців тому +2

    Docker networking allows containers to communicate with each other and host system. Two scenarios,
    Container one connects to container two, Container one has isolation from container two. When you create a container. Docker creates veth, That is docker0. It allows docker container subnet to communicate with host. It is called bridge networking and it is default networking in docker. If there is not veth/docker0 the containerized application is not reachable from internet. So users will not be able to access application.

  • @devops-journey01
    @devops-journey01 Рік тому +7

    No words to say, simply awesome ❤️❤️❤️....

  • @mohammed_rayees387
    @mohammed_rayees387 2 місяці тому +2

    Iam very thankful to Allah , Uss ne mujhe aap se mila diya Devops sikhne ke liye
    Thanks alot Abhishek bhaiya

  • @shivanigadekar4281
    @shivanigadekar4281 8 місяців тому +1

    Thankyou for teaching this concept in a very crisp and easy manner, Before I use to be scare of docker networking.
    but now i am pretty confident about it

  • @pavankumarakula2268
    @pavankumarakula2268 Рік тому +1

    The answer for the question that you asked us at @30:30 i.e. the IP address of the host-demo container would be either nothing or something in the subnet of the host network. Thanks for the wonderful explanation Abhishek.

  • @swapnilkhandekar4157
    @swapnilkhandekar4157 Місяць тому

    #Network driver summary
    1)The default bridge network is good for running containers that don't require special networking capabilities.
    2)User-defined bridge networks enable containers on the same Docker host to communicate with each other. A user-defined network typically defines an isolated network for multiple containers belonging to a common project or component.
    3)Host network shares the host's network with the container. When you use this driver, the container's network isn't isolated from the host.
    4)Overlay networks are best when you need containers running on different Docker hosts to communicate, or when multiple applications work together using Swarm services.

  • @subash7777
    @subash7777 7 місяців тому +1

    at 30:40 the host-demo container is created with host network name. so it will have completely different ip since its different from the bridge network and newly created custom network. Thank you for this valuable content. Clearly understood the implementation of the network in docker.

    • @bhanuteja_04
      @bhanuteja_04 5 місяців тому

      Then why don't it have host ip in the network section when we inspect the container?

    • @AmanGupta-tm9mp
      @AmanGupta-tm9mp 5 місяців тому

      just write the command : docker exec -it host-demo /bin/bash .It takes u to the host section and there u see root@Ip address which is your host machine Ip. But in network section u didn't get it. @@bhanuteja_04

  • @AshishGupta-oj3qe
    @AshishGupta-oj3qe 23 дні тому

    Best explanation. You're amazing 🤩

  • @neha_tatpuje
    @neha_tatpuje Місяць тому +1

    Amazing explaination❤

  • @amaldravid4979
    @amaldravid4979 Рік тому +3

    Recently I started following you, Your explanation is really awesome it makes people to understand easily, appreciating your efforts bro ...pls continue the same.

  • @RAVIKUMAR-zg6bv
    @RAVIKUMAR-zg6bv Рік тому +1

    Best content & Better Explanation what better tutor can deliver and you are the best of best
    Thank you bother 😍😍

  • @tejach3354
    @tejach3354 9 місяців тому +1

    Good session Abhishek bro. One good point your session is person without much technical background can able to catch and since you are not using any typical corporate English words ,we are able to adopt video easily in simple language .

  • @samuelude6858
    @samuelude6858 8 місяців тому +1

    Thanks bro, as always simple and excellent way of impacting knowledge. Lesson learnt docker(network)=k8s(namespace). More blessings all the way

  • @spirited_rovers
    @spirited_rovers Рік тому +2

    Thanks for making us to understand the concept in a easy way.

  • @soumyadipchatterjee2267
    @soumyadipchatterjee2267 7 місяців тому +1

    I feel very fortunate , lucky to associated with you and enhancing my skills . This is a perfect example where you illustrates typical Docker Networking in simple terms and make things understandable . Keep enriching us with such knowledge .😊😇🙏. One question except the Timestamp that How this Networking models can co relate with AWS & other cloud or how we can integrate ? Please make a video on this . Thanks a lot in advance again .

  • @skk-dq4kb
    @skk-dq4kb 5 місяців тому +1

    Outstanding explanation 🤩

  • @baig378
    @baig378 7 місяців тому

    Hi Abhishek, Thank you for valuable content. I was searching for some one who gives me clear understanding about devops what to learn, how to proceed step by step. Luckily I found you through LinkedIn post from some person, and I got answers to all my confusion regarding Devops. Kudos to you.
    I have the following questions Abhishek,
    Q1: For suppose I have created a container with default bridge network or host network or custom network, but later stage I want to change the network to different one. Can I change without deleting the container?
    Q2: Host is communicating with different containers with different networks. Can we make the same among the containers? What I mean is can only a container in the same host have multiple networks so that it will communicate with different containers?
    Thank you.

  • @emmanuel2kus1
    @emmanuel2kus1 Рік тому +1

    We appreciate you @Abhishek ..Thank you so much

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому +1

      Thanks alot .. Please share it with your friends and colleagues

  • @Meigeshpatni
    @Meigeshpatni Рік тому +1

    You are an amazing teacher Abhishek

  • @pankajpatel310
    @pankajpatel310 24 дні тому

    Thank you so much Abhishek.. you are awesome

  • @avinashreddy2309
    @avinashreddy2309 7 місяців тому +1

    kudos to you🙌, I have attended paid training before, he didn't even teach this topic.

  • @biswajitmohapatra2172
    @biswajitmohapatra2172 Рік тому +2

    Thank you sir for wonderful explanation.. after this please cover docker compose part!!

  • @monirmostafiz2919
    @monirmostafiz2919 Рік тому +1

    awesome , this is the best for beginner

  • @user-ik4wn5tb6g
    @user-ik4wn5tb6g 9 місяців тому +1

    great explanation.Thank you sir

  • @PaulSmith-bx2fq
    @PaulSmith-bx2fq 3 місяці тому

    Superb explanation!

  • @ammabalasimha
    @ammabalasimha Місяць тому

    Great information

  • @mohammed_rayees387
    @mohammed_rayees387 2 місяці тому

    @30:30 IP address of host-demo container = IP address of host (EC2-instance)

  • @shubhamchaudhary3689
    @shubhamchaudhary3689 11 місяців тому +1

    Thank you Abhishek❤

  • @anandsrivastava8734
    @anandsrivastava8734 Рік тому +1

    Thanks @abhishek ..was waiting for this

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому +1

      Please share it if you like the video

    • @anandsrivastava8734
      @anandsrivastava8734 Рік тому

      @@AbhishekVeeramalla Definitely, however I keep sharing your videos within my group 😊

  • @DeepakKumar-if6mv
    @DeepakKumar-if6mv Рік тому +1

    Thanks Abhishek for this video. Please also assist on how one can explain gaps in experience.

  • @user-ed9ve8bx4p
    @user-ed9ve8bx4p Рік тому +1

    Just Awesome.

  • @Adityaa2
    @Adityaa2 Рік тому +2

    Thank you 😊🙏

  • @kislaysinha9772
    @kislaysinha9772 9 місяців тому +1

    thank you devops guru

  • @lokeshloku7676
    @lokeshloku7676 Рік тому +1

    Wonderful content

  • @rktech8157
    @rktech8157 Рік тому +1

    Thank you so much for explaining this networking concept in very easy and clear way. If you have time could you please create a short demo for Overlay network. Thanks in advance.

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому +1

      Hi RKtech, I can do that but frankly it will not be of much use for the efforts as overlay networks like calico, sdn can be installed much simpler way once we move to Kubernetes.
      But I will try to do that If I find some time

    • @rktech8157
      @rktech8157 Рік тому

      @@AbhishekVeeramalla Thank you so much!!

  • @sandhyavishakha
    @sandhyavishakha 9 місяців тому +2

    If possible, please make a video on Docker Compose, it would really help.. Thank you!

  • @GKK120
    @GKK120 11 місяців тому +1

    Awesome

  • @priyapriya-nu5vp
    @priyapriya-nu5vp 2 місяці тому

    Thank you sir 😊

  • @amitbadyal7631
    @amitbadyal7631 8 місяців тому +2

    hi abhishek videos are great. can you do a favour as you have different videos on interview questions on every tool , can you merge them all and make a long video like mostly asked devops interviews questions or important devops interviews questions like that. it would be very helpful for the students to prepare for the interviews and you can also add new questions into that also. i wish you could see this message.

  • @jaykumaranbu7173
    @jaykumaranbu7173 Рік тому +1

    Nice, thanks

  • @Deva2596
    @Deva2596 10 місяців тому +1

    Thank you so much SIr🫡😊🤗

  • @sasanka7474
    @sasanka7474 Рік тому +1

    31:10 by default it's a ec2/host network when we trying to create a container with host

  • @ravitejamaddireddy7925
    @ravitejamaddireddy7925 2 місяці тому

    Hey abhishek thanks for the wonderful explanation. I have one doubt in this time stamp 20:10 so here we are using the custom bridge to isolate the container. Here is my question -- even custom bridge network also coming from host right as per your diagram. How is this container secure?

  • @reneshmlal2809
    @reneshmlal2809 4 місяці тому

    Thank You ❤

  • @likithagangasani1918
    @likithagangasani1918 5 місяців тому

    30:42 minutes
    Host network ip would be ip address of vm/machine (have same cidr block)

  • @ravindraravi7435
    @ravindraravi7435 5 місяців тому

    Thank you ^^

  • @shashankchoubey9253
    @shashankchoubey9253 7 місяців тому

    very helpful :)

  • @adarshjha__1
    @adarshjha__1 11 місяців тому +1

    Day-26, 27, 28 done ✅️🙂

  • @shravonidas.9449
    @shravonidas.9449 4 місяці тому

    @Abhishek request you to check my question - 1)How to access the host-demo container (it hold host network ) .As there is no IP for it then from different container ex-login how we can check if its reachable or not ?using which ip i can validate? 2 )from different host type network container how to communicate ?

    • @artibalvir1193
      @artibalvir1193 2 місяці тому

      you can use the host ip itself to login the container

  • @ImtiazAli-in7gk
    @ImtiazAli-in7gk Рік тому +1

    sir you are best I have one question regarding Cloning Repository. Sir is it neccesery to clone your Repoitory to do practice or we can create our own?

  • @Yawar_Manzoor
    @Yawar_Manzoor 7 днів тому

    i did it i created custom bridge network ,i tried to ping it from default bridge network container it doesn't work as you did.
    but the question is when i tried to ping container that have default bridge network form custom bridge network container why it not woks as the are on the same host....
    thanks for the great videos..

  • @anuragnair1862
    @anuragnair1862 11 місяців тому

    Thank you Abhishek for explaning about docker volumes i have a question how docker manages multiple volumes or storage volumes must be using resource like disk space from host os how storage is managed here pls clear this doubt
    @Abhishek

  • @Rameshpowervlogs
    @Rameshpowervlogs Рік тому +1

    super bro

  • @Phoenix-2019
    @Phoenix-2019 2 місяці тому

    Abhishek I have to ask question, how input container will talk to Finance container when it is required since we have separated using custom bridge network as front end has to talk to backend.

  • @amarnathmansali2687
    @amarnathmansali2687 Рік тому +1

    Time stamp 4:10 - can we consider container c1 and c2 as microservice 1 and microservice 2 , since containers are deployed as microservice or how pls clarify. TIA 😊

  • @bhavaniboda4155
    @bhavaniboda4155 Місяць тому

    Please explain about docker sharm

  • @faisaliqbal7382
    @faisaliqbal7382 Рік тому

    thanks

  • @abheemk
    @abheemk Рік тому +1

    Hi @Abhishek , 31:00 container was created with host network, and ip address corrsponds to host machine, how do we access that container if we have to ?

  • @vasupodagatla393
    @vasupodagatla393 Рік тому +1

    Plz do one more video on multistage docker build for java spring boot application

  • @rajkajave
    @rajkajave 11 місяців тому +1

    Is there any way login container can talk with finance in case any specific app from login need info from finance?

  • @Rameshpowervlogs
    @Rameshpowervlogs Рік тому +1

    docker compose and docker swarm

  • @chetank-ed6wu
    @chetank-ed6wu 4 місяці тому

    Please explain about docker compose

  • @vinaykumarmatam3708
    @vinaykumarmatam3708 Рік тому +1

    Thanks..... What about docker service, docker swarm and docker compose

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому

      We will not cover them in this course .. May be sometime after this course as many people are asking for docker compose

    • @vinaykumarmatam3708
      @vinaykumarmatam3708 Рік тому

      @@AbhishekVeeramalla okk thank you

  • @UdayKumar-tu1is
    @UdayKumar-tu1is Рік тому +1

    hi bro i have a small doubt that how the login and logout container will talk each other with finance container like user details/ credit card detials in backend where the containers are logically isolated which we are made them secure.
    is they are using some nat gateway like process ?
    Is my doubt valid or not please respond. thanks alot for your knowledge sharing
    even i didnt see the people sharing the knowledge. really thanks alot bro once agin

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому +1

      Hi Bro .. That was just an example.
      In that example I mean to say .. consider there are two different projects which need isolation.. so for easy understanding I said .. login , logout and payments..
      In general, if I have to answer your question
      1. Mostly applications with in the same product will be in same network.
      2. Assume for some reason they are not in same network.. then yes .. u can create some VXLAN tunnels or VPC peering .. e.t.c.,.

    • @UdayKumar-tu1is
      @UdayKumar-tu1is Рік тому

      Thanks bro this cleared my doubt

  • @ariya_2411
    @ariya_2411 3 місяці тому

    Docker swarm

  • @brianhaessel6578
    @brianhaessel6578 Рік тому +1

    I use podman, I followed your tutorial, my finance container can talk to the others on different bridge?

  • @Ethanhunt-p8u
    @Ethanhunt-p8u 10 днів тому

    After creating a custom network , how can we communicate with that container ?

  • @vamsimadduri12
    @vamsimadduri12 Місяць тому

    i have one question if bridge network error like container on the same host it will generate different subnet of each container how to resolve issue related bridge networking?

  • @dillu-k5f
    @dillu-k5f Місяць тому

    After Docker Image and container creation then how to run image through cli?

  • @kondareddy2657
    @kondareddy2657 Рік тому +1

    Thanks for the session.
    I have a couple of doubts.
    1. .I have one Java application which is running on the Websphere application server and it will connect with Oracle .
    If i use Docker i need to package my application + required software + Websphere + Oracle into one package ??

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому

      Is websphere needed ? You need to check if you can redesign the app to make it light weight.

    • @HeyPardha-K
      @HeyPardha-K Рік тому

      @@AbhishekVeeramalla is it possible to run application without application server??
      I have no clue

  • @bhanuteja_04
    @bhanuteja_04 5 місяців тому

    Hello Abhishek i have a doubt..(31.36)
    When we run the container using the host network we can access the container using the host ip ..then..why dont we see the ip of the host machine in the network section when we inspect the container using the host network?

    • @talkwithyusufzai7917
      @talkwithyusufzai7917 5 місяців тому

      Because you are inspecting the container not the host if you want to see host ip hit this command "ip addr show
      "

  • @lvbg3113
    @lvbg3113 5 місяців тому

    Hi, Question :
    At 14:33 doesnt C2 have its own docker-0 which gets binded to the host network?

  • @sibaprasadbisoi90
    @sibaprasadbisoi90 10 місяців тому +1

    @abhishekveramalla anna - how do the containers communicate after restart as ip and hostnames are dynamic ?

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 місяців тому

      You will learn exactly the same thing in next classes

    • @sibaprasadbisoi90
      @sibaprasadbisoi90 10 місяців тому

      thank you so much@@AbhishekVeeramalla excellent work, i wish you grow more and more.

  • @anandkasina2996
    @anandkasina2996 8 місяців тому

    hey abhishek i have a doubt here if my host is on xyz range ,then the containers address will also be the same if i were to create the container in that host right?

  • @Sureshthebrokenking
    @Sureshthebrokenking Рік тому +1

    @6:36 Brother I have a doubt, we are launching the host in one specific subnet, but when the container get created in another subnet, how is it possible

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому

      A seperate isolated network is created for the containers and this netowrk is shared with the hosts.
      By default the network created is bridge network.

  • @irshadmohammed4724
    @irshadmohammed4724 3 місяці тому

    Hi @abhishek, thank you very much for doing devops series, I have one query, at 22: 52 after installing ping command when i am trying to check using ping -V getting this error-- error ping: usage error: Destination address required. could you please check and help me out on this

  • @sivaraman8852
    @sivaraman8852 Місяць тому

    can u please share all diagram slide related to this docker series. I have one question when i see ur videos its got understand clearly but after somedays its forgot so i need to be see ur videos again from scratch its take time . if you share these pictorial diagram slide its usefull for recall faster.could you please share these files not only this video i would suggest to share all pictorial diagram for ur videos for better understanding.

  • @saurabhbisht9280
    @saurabhbisht9280 Рік тому

    You missed docker compose in your playlist

  • @durgaprasad6460
    @durgaprasad6460 8 місяців тому

    If multiple containers are created on the same host , are all containers connected to the same veth by default

  • @ss-ih7zh
    @ss-ih7zh 9 місяців тому

    for example if we are taken 3-tire application project
    like container-1 is frontend
    container-2 is backend
    container-3 is database
    if we assign Bridge network to container-1 & 2 and assigned customized bridge network to container-3 (database). Now
    how the backend container will connect to database and fetch the data?

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  9 місяців тому +1

      Why do you keep them in different networks ?
      If u still want them to connect, you need to setup vlan or vxlan or peering

    • @ss-ih7zh
      @ss-ih7zh 9 місяців тому

      @@AbhishekVeeramallathankyou for your immediate response

  • @biggestgamelibrary4025
    @biggestgamelibrary4025 6 місяців тому

    When we log into host demo container from this container we are able to ping to all other containers why?

  • @anshuagnihotri9489
    @anshuagnihotri9489 Рік тому

    Please make a video in Hindi as well

  • @bikensharma4577
    @bikensharma4577 9 місяців тому

    15:30 if we use bridge network too i guess it's fine as our instance will be in a private subnet....am i right in this case?

  • @DeeBeekayKay
    @DeeBeekayKay Рік тому

    Abhishek, At 20:30, you showed us how login and logout containers are connected to veth0 and payment container to docker network. The login an dlogout containers can talk to each other. But, if they want to tatalk to the payment container, is that possible? If yes, how?

    • @AmanGupta-tm9mp
      @AmanGupta-tm9mp 5 місяців тому

      I think it's not possible if we want to talk with payment container then we create container in that network , we don't want to talk with payment container that's why we isolate it. Is am I right Abhishek?

  • @AmrutaWagh-kb3yv
    @AmrutaWagh-kb3yv Рік тому

    can we use 3-4 same containers in docker? so one goes down one will serve the application?

  • @umashanker3244
    @umashanker3244 Рік тому

    Can you explain about docker swarm

  • @missy2904
    @missy2904 5 місяців тому

    31:43 how come the ip address is nothing atleast it should show host ip right if you use host network? But why nothing is showing in that? Is my understanding wrong about host networking ?

  • @bilalosmany5022
    @bilalosmany5022 28 днів тому

    I have a doubt suppose if we have 4 containers C1,C2,C3,C4 if C1,C2 can be connected via ping as we won't do anything, we will add bridge for C3,C4 as an isolation but in future if organization says that C3,C4 are good to be isolated but make a connection between C3 and C4 so how will I connect two isolated networks together?

  • @sivapavan490
    @sivapavan490 Рік тому +1

    Bro,here u r explaing the 3 container (login , logout and finance). Here has 3 containers and u can creating the 1 bridge driver and 1 custom driver. By using multi stage docker container concepts can we create these 3 containers are merge into 1 containers. In that 1 containers only can we divide into bridge driver and custom drivers

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Рік тому

      yes you can do that

    • @mayankarya6204
      @mayankarya6204 Рік тому +1

      But i Guess the functionality will break (like db container always should be kept isolated)and you will get compromised with security like an attacked can easily get your sensitive data as i was only one container.

  • @hussainshaik2673
    @hussainshaik2673 Місяць тому

    No commets just wow

  • @rohitgaikwad2848
    @rohitgaikwad2848 Рік тому +1

    Sir what is group in docker & what is use of that