Docker ले विभिन्न सংযोजन आवश्यकताहरूको लागि विभिन्न नेटवर्क ड्राइभरहरू (bridge, host, overlay, macvlan, none) प्रदान गर्छ, साथै user-defined networks जस्ता विशेषताहरू DNS-आधारित सेवा खोज सहित। multi-container र multi-host अनुप्रयोगहरूलाई सही तरिकाले जोड्न नेटवर्किङलाई गहिराईमा बुझ्न महत्त्वपूर्ण छ।
नेटवर्क ड्राइभरहरू
BRIDGE (default) → a private internal network on a single host; containers communicate;
isolated from the host except via published ports. USER-DEFINED bridges add DNS
(containers reach each other by name) — preferred over the default bridge.
HOST → the container uses the host's network stack directly (no isolation, no port
mapping needed) — max performance, less isolation.
OVERLAY → spans MULTIPLE hosts → containers on different machines communicate
(for Docker Swarm / multi-host clusters).
MACVLAN → gives a container its own MAC/IP on the physical network (appears as a
physical device).
NONE → no networking (fully isolated).
