Docker networks: how containers connect
Answer: Containers can reach each other and services outside Docker. Networking starts on by default. bridge is the default driver; overlay, host, macvlan, and ipvlan are also available.
What a container sees
Container networking is the ability for containers to connect to and communicate with each other, and also with non-Docker network services.
Networking comes enabled by default, and outgoing connections are allowed.
From inside, a container is not told what kind of network it is attached to, or whether peers are also Docker containers.
It sees a network interface, an IP address, a gateway, a routing table, and DNS services, among other details.
Drivers
The docker network command manages networks. You can use subcommands to create, inspect, list, remove, or connect networks.
bridge is the default network driver. bridge is the default network driver.
Bridge networks are commonly used when an application in a container needs to communicate with other containers on the same host.
Overlay networks connect multiple Docker daemons. The host driver removes network isolation between the container and the Docker host.
See also
Claims
- id: C1 claim: Containers can connect to each other and to non-Docker network services. source: S1 evidence: "connect to and communicate with each other, and with non-Docker network services"
- id: C2 claim: Networking is enabled by default and supports outgoing connections. source: S1 evidence: "Containers have networking enabled by default"
- id: C3 claim: The docker network command manages networks. source: S2 evidence: "Manage networks"
- id: C4 claim: Subcommands can create, inspect, list, remove, or connect networks. source: S2 evidence: "subcommands to create, inspect, list, remove"
Sources
- [S1] Networking overview. Docker Docs. https://docs.docker.com/engine/network/ . License: Apache-2.0. Accessed 2026-11-23.
- [S2] docker network. Docker Docs. https://docs.docker.com/reference/cli/docker/network/ . License: Apache-2.0. Accessed 2026-11-23.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker Docs, Networking overview; Docker Docs, docker network. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker Docs, Networking overview; Docker Docs, docker network. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker networks: how containers connect." iinventedlight Library, iil:note:xvvp9qn5, version of 2026-11-23. https://iinventedlight.com/library/notes/docker-network/. License: CC-BY-4.0.
@misc{iil_note_xvvp9qn5,
author = {{iinventedlight}},
title = {{Docker networks: how containers connect}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/docker-network/},
note = {Permanent ID iil:note:xvvp9qn5. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-network.schema.json (schema; CC-BY-4.0)
- docker-network.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-network.md.