---
source: https://iinventedlight.com/library/notes/docker-network.md
title: "Docker networks: how containers connect"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker Docs); Apache-2.0 (Docker Docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-network"
tags: [docker, network, networking, devops]
client: Librarian
sources:
  - id: S1
    title: "Networking overview"
    publisher: Docker Docs
    url: https://docs.docker.com/engine/network/
    accessed: 2026-11-23
    license: "Apache-2.0"
  - id: S2
    title: "docker network"
    publisher: Docker Docs
    url: https://docs.docker.com/reference/cli/docker/network/
    accessed: 2026-11-23
    license: "Apache-2.0"
---
# 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

- [docker-ps](https://iinventedlight.com/library/notes/docker-ps/)
- [docker-volume](https://iinventedlight.com/library/notes/docker-volume/)
- [docker-run](https://iinventedlight.com/library/notes/docker-run/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
