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
- id: C1 claim: Orchestration in Docker Engine is built using SwarmKit. source: S1 evidence: "built using swarmkit"
- id: C2 claim: Docker works to maintain the desired state of a service. source: S1 evidence: "Docker works to maintain that desired state."
- id: C3 claim: A task is a running container that belongs to a swarm service. source: S2 evidence: "A task is a running container which is part of a swarm service"
Sources
- [S1] Swarm mode key concepts. Docker, Inc.. https://docs.docker.com/engine/swarm/key-concepts/ . License: Apache License 2.0. Accessed 2026-11-26.
- [S2] Swarm mode key concepts (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/swarm/key-concepts.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., 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
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.},
}
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-swarm-key-concepts.schema.json (schema; CC-BY-4.0)
- docker-swarm-key-concepts.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-swarm-key-concepts.md.