The Secret to Docker Networks

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 6

  • @kenylabrador
    @kenylabrador 5 หลายเดือนก่อน

    Thank you, good explanation, really helpful!

  • @persianwaffle
    @persianwaffle 3 ปีที่แล้ว +1

    Great video
    however could you elaborate on why they were communication to backend network and not frontend?
    if I use command :
    docker exec web01 ping db1.frontend
    they start getting data from frontend network.
    so my question is why by default they are talking over backend network?

    • @DevOpsJourney
      @DevOpsJourney  3 ปีที่แล้ว

      Thank you for the comment.
      Been a while since I created this video.. but isn't DB01 supposed to just be in the backend network and not the frontend?
      If DB01 is assigned to both frontend and backend.. I assume if you do a docker inspect it shows the interfaces in a specific order.. that order might determine which is the 'default'.

    • @persianwaffle
      @persianwaffle 3 ปีที่แล้ว

      @@DevOpsJourney actually I connected it to both networks just to check.
      However as you rightfully said, after inspecting it came to know the latest network is the default one.

  • @acvKaZe
    @acvKaZe 4 ปีที่แล้ว +1

    thanks