Skip to main content
InterviewHubPRO
Section Overview
Q9

Question 9 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

18%
Docker & Containers (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What are the common Docker networking modes (`bridge`, `host`, `none`, `overlay`)?

junior LevelMost AskedDocker & Containers

In Simple Words:

  • bridge (Default): Creates a virtual bridge network (docker0 on Linux). Containers attach via virtual ethernet (veth) pairs, get private IP addresses (e.g., 172.17.0.x), and communicate with external networks via host NAT.
  • host (--net=host): Disables network isolation entirely. The container shares the host's network namespace and IP stack directly without NAT or port mapping overhead. Maximum throughput, but port collisions can occur.
  • none (--net=none): Completely isolates the container network stack. Has only a loopback (127.0.0.1) interface with no external access. Useful for batch computation or cryptographic air-gapped tasks.
  • overlay: Enables multi-host container networking across distinct physical Docker daemon nodes (used in Docker Swarm and Kubernetes clusters).