Docker Swarm
docs.docker.com
What it is
Docker Swarm is an open-source, free orchestration mode built into Docker Engine for managing clusters of Docker daemons in production. It is controlled through the Docker CLI and needs no separate orchestration software. Managers maintain a declarative desired state covering replica counts, networks, storage resources, and exposed ports. Services can be replicated across selected nodes or run globally with one task on every node. Overlay networks connect daemons, while an ingress network provides load balancing. Swarm assigns DNS names and supports virtual-IP load balancing or DNS round-robin discovery. Updates can roll out incrementally and roll back to an earlier service version. Nodes authenticate and encrypt communications with mutual TLS, requiring at least TLS 1.2. Overlay application traffic is not encrypted by default; IPsec encryption can reduce performance. Swarm is self-hosted, supports rolling updates and policy controls, and lacks multi-cluster management and autoscaling.
Spec sheet
- Purpose
- Swarm mode is an advanced feature for managing a cluster of Docker daemons and is intended for production runtime environments.Read 7 Oct 2026 · docs.docker.com
- Security
- Swarm nodes use mutual TLS to authenticate and encrypt communications, with a minimum TLS version of 1.2.Read 7 Oct 2026 · docs.docker.com
- Application traffic
- Application data over overlay networks is not encrypted by default; enabling overlay encryption with IPsec can impose a non-negligible performance penalty.Read 7 Oct 2026 · docs.docker.com
- Built in
- Current Docker versions include Swarm mode in Docker Engine, managed through the Docker CLI, without additional orchestration software.Read 7 Oct 2026 · docs.docker.com
- Manager limit
- Docker recommends a maximum of seven manager nodes and notes that adding managers can reduce performance.Read 7 Oct 2026 · docs.docker.com
- Network requirements
- Swarm nodes need TCP/UDP port 7946 for network discovery and UDP port 4789 by default for overlay data traffic.Read 7 Oct 2026 · docs.docker.com
- Networking
- Swarm supports overlay networks for communication among Docker daemons in the cluster and includes an ingress network for load balancing.Read 7 Oct 2026 · docs.docker.com
- Overlay limit
- Docker recommends /24 overlay network blocks, which limit a network to 256 IP addresses.Read 7 Oct 2026 · docs.docker.com
- Scheduling
- Swarm supports replicated services and global services that run one task on every node.Read 7 Oct 2026 · docs.docker.com
- Service discovery
- Swarm assigns services DNS names and supports virtual IP load balancing or DNS round-robin discovery.Read 7 Oct 2026 · docs.docker.com
- Service model
- Services use a declarative model in which managers work to maintain the desired state, including replica count, networks, storage resources, and exposed ports.Read 7 Oct 2026 · docs.docker.com
- Updates
- Swarm can roll out service updates incrementally and roll back to a previous service version if something goes wrong.Read 7 Oct 2026 · docs.docker.com
Plans and prices
Strong points and limits
Strong points
- Built into current Docker Engine
- Declarative replica, network, and storage management
- Overlay networking with ingress load balancing
- Incremental updates with rollback
- Mutual TLS secures node communication
Limits
- No multi-cluster management
- No autoscaling
- Overlay traffic unencrypted by default
- Managers recommended maximum is seven
Who it suits
Swarm suits teams running production Docker workloads across self-hosted Linux or Windows nodes. It fits users who want built-in orchestration managed from the Docker CLI.
Verdict
Docker Swarm provides free, built-in cluster management with service scheduling, networking, discovery, and rollback. Consider its missing autoscaling and multi-cluster features, plus the performance cost of optional overlay encryption.
Where Specifiction places it
- Container Orchestration Software#5 of 328.3