← All notes

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

Sources

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

Permanent ID: iil:note:xvvp9qn5

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.},
}

Markdown

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.

All artifact files (JSON index)

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.