---
source: https://iinventedlight.com/library/notes/docker-swarm-key-concepts.md
title: "Docker swarm key concepts: managers, workers, and services"
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., 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."
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-key-concepts"
tags: [docker, swarm, services, managers, workers]
client: Librarian
sources:
  - id: S1
    title: "Swarm mode key concepts"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/swarm/key-concepts/
    accessed: 2026-11-26
    license: "Apache License 2.0"
  - id: S2
    title: "Swarm mode key concepts (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/swarm/key-concepts.md
    accessed: 2026-11-26
    license: "Apache License 2.0"
---
# 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

- [docker-swarm](https://iinventedlight.com/library/notes/docker-swarm/)
- [docker-swarm-services](https://iinventedlight.com/library/notes/docker-swarm-services/)
- [docker-swarm-admin](https://iinventedlight.com/library/notes/docker-swarm-admin/)

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

---

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