openskills.info
Course Preview

Container Networking

Container networking connects isolated containers to each other and to external networks. It covers bridge networks, overlay networks, port mapping, DNS-based service discovery, and the network namespaces that give each container its own network stack.

itVirtualization, containers, and orchestration

Container Networking

Containers run isolated processes, but useful applications still need to exchange data. Container networking gives each workload a network view and connects that view to selected peers.

The central idea is simple. A container sees familiar network objects: interfaces, addresses, routes, ports, and DNS settings. The host or orchestrator builds and manages those objects outside the container.

The Linux mental model

A Linux network namespace is an isolated network stack. It has its own interfaces, routes, firewall rules, and port space.

A virtual Ethernet pair, or veth pair, acts like a cable with two ends. A common design places one end in the container's network namespace. The other end stays on the host and joins a bridge.

container process
      |
network namespace
      |
  veth pair
      |
host bridge ---- host routing and firewall ---- external network

The bridge connects endpoints on one host. Routing connects different IP networks. Network address translation can let private container addresses reach external networks through the host address.

This model is common, but it is not universal. Host networking removes the separate network boundary. Macvlan and ipvlan connect containers differently. Overlay networks carry traffic between hosts through an additional virtual network.

Four jobs that must happen

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources