Quiz Entry - updated: 2026.12.01
What are the building blocks of Docker's Container Networking Model (CNM)?
Sandboxes (a container's isolated network stack), endpoints (its virtual interfaces) and networks (groups of endpoints that can talk), managed by the Docker engine through network and IPAM drivers.
| Element | Meaning |
|---|---|
| Network sandbox | A container's own network stack: interfaces, routing table, DNS settings (a Linux network namespace). |
| Endpoint | A virtual network interface that connects a sandbox to a network. A container can have several, one per network it joins. |
| Network | A group of endpoints that can communicate directly with each other. Containers on different networks are separated. |
| Network driver | Implements a network type: bridge, host, overlay, macvlan, ipvlan, none. |
| IPAM driver | IP address management: hands out subnets and container addresses. |
The model explains what the lab demonstrates: a container connected to two networks has two endpoints and can talk to containers on both, while containers that share no network cannot reach each other at all. Without a --network option, every container lands on the default bridge network.
* Sandboxes, endpoints and networks on top of network and IPAM drivers. *
Go deeper:
libnetwork design document — the original CNM definition of sandbox, endpoint and network.
Docker Docs: Networking overview — how containers attach to networks and what drivers exist.