← All notes

Docker swarm key concepts: managers, workers, and services

Answer: A swarm is a group of Docker hosts running in Swarm mode as managers, which handle membership and delegation, and workers, which run services.

The cluster

Docker Engine's clustering features come from SwarmKit, a separate project that supplies the orchestration layer and is used directly inside Docker.

These concepts became part of Docker Engine 1.12.

One host can act as a manager, a worker, or both.

A service's optimal state includes the number of replicas, network and storage resources available to it, and ports it exposes to the outside world.

Docker then keeps that desired state. Docker schedules that node's tasks on other nodes if a worker node becomes unavailable.

Tasks

A task is a running container that belongs to a swarm service and is directed by a manager, not a standalone container you started by hand.

A service update stops tasks that still have the old configuration and starts new ones that match the desired configuration.

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, Inc., Swarm mode key concepts; Docker, Inc., Swarm mode key concepts (source). 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, Inc., Swarm mode key concepts; Docker, Inc., Swarm mode key concepts (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.

Cite this

Permanent ID: iil:note:zevj5ztm

iinventedlight. 2026. "Docker swarm key concepts: managers, workers, and services." iinventedlight Library, iil:note:zevj5ztm, version of 2026-11-26. https://iinventedlight.com/library/notes/docker-swarm-key-concepts/. License: CC-BY-4.0.

@misc{iil_note_zevj5ztm,
  author = {{iinventedlight}},
  title = {{Docker swarm key concepts: managers, workers, and services}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-26},
  url = {https://iinventedlight.com/library/notes/docker-swarm-key-concepts/},
  note = {Permanent ID iil:note:zevj5ztm. 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-swarm-key-concepts.md.