---
source: https://iinventedlight.com/library/notes/docker-swarm-networking.md
title: "Docker Swarm networking: overlay networks, ingress, and service traffic"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Manage swarm service networks; Docker, Inc., Manage swarm service networks (source). 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-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). 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-swarm-networking"
tags: [docker, swarm, overlay, ingress, networking]
client: Librarian
sources:
  - id: S1
    title: "Manage swarm service networks"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/swarm/networking/
    accessed: 2026-11-26
    license: "Apache License 2.0"
  - id: S2
    title: "Manage swarm service networks (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/swarm/networking.md
    accessed: 2026-11-26
    license: "Apache License 2.0"
---
# Docker Swarm networking: overlay networks, ingress, and service traffic
**Answer:** Overlay networks carry traffic among the Docker daemons that participate in a swarm.

## Overlay and ingress

You can create overlay networks the same way you create user-defined networks for standalone containers.

A service can attach to one or more existing overlay networks so services can talk to each other.

These networks are ordinary Docker networks whose driver is overlay.

Ingress is the special overlay used to load-balance among a service's nodes.

## Default networks and ports

The ingress network is created automatically when you initialize or join a swarm.

By default, each service container is also connected to its daemon host's docker_gwbridge network.

The docker_gwbridge network is also created automatically when you initialize or join a swarm.

Overlay data-path traffic uses UDP port 4789 by default, and that port is configurable.

## See also

- [docker-swarm](https://iinventedlight.com/library/notes/docker-swarm/)
- [docker-overlay](https://iinventedlight.com/library/notes/docker-overlay/)
- [docker-ipvlan](https://iinventedlight.com/library/notes/docker-ipvlan/)

## Claims

- id: C1
  claim: Overlay networks use the overlay network driver.
  source: S1
  evidence: "use the overlay network driver"

- id: C2
  claim: Ingress is a special overlay network for load balancing a service's nodes.
  source: S1
  evidence: "facilitates load balancing among a service's nodes"

- id: C3
  claim: The ingress network is created when you initialize or join a swarm.
  source: S2
  evidence: "created automatically when you initialize or join a swarm"

- id: C4
  claim: UDP port 4789 is the default overlay data path, and it is configurable.
  source: S1
  evidence: "Port 4789 UDP (configurable) for the overlay network (including ingress) data path."

## Sources

- [S1] Manage swarm service networks. Docker, Inc.. https://docs.docker.com/engine/swarm/networking/ . License: Apache License 2.0. Accessed 2026-11-26.

- [S2] Manage swarm service networks (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/swarm/networking.md . License: Apache License 2.0. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Manage swarm service networks; Docker, Inc., Manage swarm service networks (source). 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).
