Freedom251 › Container Orchestration Software
Docker Swarm

What Docker Swarm is
Docker Swarm is a cluster management feature built into Docker Engine for managing Docker daemons in production runtime environments. It is controlled through the Docker CLI and needs no additional orchestration software. Managers use a declarative service model to maintain desired settings such as replica counts, networks, storage resources, and exposed ports. Services can be replicated or configured globally, with one task on each node. Swarm supports overlay networks between daemons, an ingress network for load balancing, and service discovery through DNS names, virtual IPs, or DNS round-robin. It can roll out service updates incrementally and revert to a previous service version if a problem occurs. Nodes authenticate and encrypt communications using mutual TLS, with TLS 1.2 as the minimum. Application data on overlay networks is not encrypted by default; enabling IPsec encryption can carry a performance penalty. Swarm is self-hosted and free as part of Docker Engine. Docker recommends a maximum of seven manager nodes, and overlay network blocks are recommended at /24, limiting each network to 256 IP addresses. The listed capabilities do not include multi-cluster management or autoscaling.
Who it suits
Docker Swarm suits teams managing Docker services across multiple daemons in self-hosted production environments. It is designed for users comfortable configuring cluster networks and manager nodes.
What it does well
- Built into Docker Engine and managed through the CLI
- Supports replicated and global services
- Provides incremental updates and rollback
- Uses mutual TLS for node communications
What to know first
- Application traffic on overlay networks is not encrypted by default
- IPsec overlay encryption can reduce performance
- No multi-cluster management or autoscaling
- Docker recommends no more than seven manager nodes
Limits
The Docker Swarm mode plan is free and built into Docker Engine, with no additional orchestration software required. Docker recommends /24 overlay network blocks, limiting each network to 256 IP addresses, and recommends no more than seven manager nodes.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Docker Swarm mode | Built into Docker Engine · no additional orchestration software needed | Free |
| Docker Personal | 1 user · 1 private Docker Hub repo · 100 Docker Hub pulls/hr | Free |
| Docker Team | per user/month, billed yearly; $16 per user/month on monthly plan · Up to 100 users · unlimited private Docker Hub repos · 10 organization access tokens | $15 a month |
| Docker Business | per user/month, billed yearly · No user cap · unlimited private Docker Hub repos · 100 organization access tokens | $24 a month |
| Docker Pro | per user/month, billed yearly; $11 per user/month on monthly plan · 1 user · 2 Docker Scout-enabled repos · unlimited Docker Hub pull rate | $9 a month |
As docs.docker.com lists them, read 7 Oct 2026. The maker's own page has the final word.
Getting started
- Open the Docker Swarm documentation website.
- Use a current Docker version with Swarm mode included in Docker Engine.
- Set up the Docker daemons that will form the cluster and manage Swarm through the Docker CLI.
- Allow TCP/UDP port 7946 for network discovery and UDP port 4789 by default for overlay data traffic.
- Define services with the desired replicas, networks, storage resources, and exposed ports.
Docker Swarm manages production clusters of Docker daemons as a built-in Docker Engine feature. It is best for teams that want to schedule and update services through the Docker CLI without adding orchestration software. Its built-in networking and rollback support are useful, but the lack of autoscaling and multi-cluster management narrows its fit.
Overview
Swarm uses a declarative service model: managers work to maintain the desired replica count, networks, storage resources and exposed ports. That gives teams a consistent way to manage services across a cluster. Because Swarm mode is included in current Docker versions, it avoids a separate orchestration layer and its additional software requirements.
The trade-off is scope. Swarm is self-hosted and does not manage multiple clusters or autoscale services. It suits teams operating a defined Docker cluster; teams that need centralized multi-cluster management or automatic capacity adjustment should choose another approach.
Key features
Scheduling and updates
Swarm supports replicated services and global services, which run one task on every node. Managers work toward the declared service state, and incremental updates can be rolled back to a previous version if something goes wrong. This is a practical release safeguard, but it does not replace autoscaling when demand changes.
Networking and discovery
Overlay networks connect Docker daemons in the cluster, and an ingress network provides load balancing. Services receive DNS names and can be discovered through virtual IP load balancing or DNS round-robin. These features cover common in-cluster communication needs, but deployment planning must account for TCP/UDP port 7946 for discovery and UDP port 4789 by default for overlay data traffic.
Security and scale limits
Swarm nodes use mutual TLS to authenticate and encrypt communications, with TLS 1.2 as the minimum. Application data sent over overlay networks is not encrypted by default. Enabling IPsec overlay encryption can protect that traffic, but may carry a non-negligible performance penalty, so teams with sensitive workloads must weigh protection against throughput.
Docker recommends no more than seven manager nodes, noting that additional managers can reduce performance. It also recommends /24 overlay network blocks, which cap a network at 256 IP addresses. These are meaningful constraints for larger or densely addressed deployments.
Pricing
Swarm mode is free: Docker Swarm mode costs free and is built into Docker Engine, with no additional orchestration software needed. There is no Swarm trial or separate Swarm plan to size; the direct cost is zero, while the operator remains responsible for the self-hosted deployment.
Docker Hub plans are separate from Swarm itself and may matter to teams managing images. Docker Personal is free for one user, one private Docker Hub repository and 100 pulls per hour; the caps make it a fit for individual use, not a shared private-repository workflow. Docker Pro costs $9 a month per user when billed yearly, or $11 per user/month on a monthly plan; it includes one user, two Docker Scout-enabled repositories and unlimited Docker Hub pull rate. It suits a single user who needs more pull capacity, though it remains a one-user plan.
Docker Team costs $15 a month per user when billed yearly, or $16 per user/month on a monthly plan. It supports up to 100 users, unlimited private Docker Hub repositories and 10 organization access tokens, making it the option for teams needing shared repositories. Docker Business costs $24 a month per user when billed yearly and has no user cap, unlimited private repositories and 100 organization access tokens; it is suited to larger organizations needing those higher token limits. These subscriptions add Docker Hub capabilities, not Swarm orchestration features.
Platforms
Swarm is self-hosted and supports Linux, Windows and API access. The Docker CLI provides its management interface.
Who it's for
Swarm is a sensible choice for teams that already run Docker Engine and want a no-cost way to declare, schedule and update services across a single cluster. Its built-in service discovery and rollback support are especially relevant when releases and cluster networking matter more than automatic scaling.
Look elsewhere if workloads need autoscaling, cross-cluster management, or encrypted overlay application traffic without accepting the potential performance cost of IPsec. The manager and overlay network recommendations also make careful capacity and address planning important.
Pros and cons
- Pro: Built into Docker Engine, so teams can manage a cluster without adopting separate orchestration software.
- Pro: Incremental updates and rollback help limit the impact of a failed service release.
- Pro: DNS discovery, virtual IP load balancing and ingress networking cover core cluster communication needs.
- Con: No autoscaling or multi-cluster management, limiting fit for changing capacity needs or fleets of clusters.
- Con: Overlay application traffic is unencrypted by default; IPsec encryption may reduce performance.
- Con: Recommended manager and overlay network limits constrain larger deployments and address allocation.
Alternatives
For an overview of the category, see Container Orchestration Software.
Choose .NET if its free plan, which supports up to 1,000 nodes, better fits the scale you need; choose Swarm for Docker Engine cluster management and service scheduling. Civo Block Storage is a freemium storage option with persistent volumes and two additional data mirrors across distributed nodes, rather than a direct Swarm orchestration substitute.
Kubermatic Kubernetes Platform offers a free, open-source Community Edition and a paid Enterprise Edition; consider it if you want a Kubernetes platform. MicroK8s is another free Kubernetes option with a free trial, and fits readers comparing Kubernetes deployment choices with Swarm's Docker Engine integration.
Google Kubernetes Engine is a paid service with a free tier and free trial; consider it if a managed Kubernetes service better matches your deployment needs. Kubernetes is a free, open-source platform for readers considering Kubernetes rather than Swarm's built-in Docker Engine mode. KubeSphere offers a free Community Edition described as an open-source Kubernetes container platform. Rancher has a free open-source plan and a paid Prime plan; consider it when comparing Rancher platform options.
Verdict
Choose Docker Swarm if you want free, built-in service management for a self-hosted Docker Engine cluster, with declarative scheduling, discovery and rollback in one operating model. Look elsewhere if autoscaling or multi-cluster management is essential, or if overlay application traffic must be encrypted by default without a potential performance cost.
Verdict
Swarm provides cluster service management, networking, and rolling updates as a built-in Docker Engine feature. Its limits around autoscaling, multi-cluster management, and overlay traffic encryption matter when planning a deployment.
Questions
Is Docker Swarm free?
Yes. Swarm mode is free and open source, and it is built into Docker Engine.
What platforms does Docker Swarm support?
Its listed platforms are API, Linux, self-hosted, and Windows.
Does Docker Swarm support autoscaling or multi-cluster management?
No. It does not provide autoscaling or multi-cluster management.
How does Docker Swarm handle service updates?
It can roll out updates incrementally and roll back to a previous service version if something goes wrong.
Does Swarm encrypt network traffic?
Nodes use mutual TLS to authenticate and encrypt communications, with TLS 1.2 as the minimum. Application data on overlay networks is not encrypted by default; enabling IPsec overlay encryption can affect performance.
What are Docker's recommendations for cluster size and overlay networks?
Docker recommends a maximum of seven manager nodes and /24 overlay network blocks, which allow 256 IP addresses per network.
Facts from Docker Swarm's own pages
- Application traffic
- Application data over overlay networks is not encrypted by default; enabling overlay encryption with IPsec can impose a non-negligible performance penalty. · docs.docker.com, 7 Oct 2026
- Built in
- Current Docker versions include Swarm mode in Docker Engine, managed through the Docker CLI, without additional orchestration software. · docs.docker.com, 7 Oct 2026
- Manager limit
- Docker recommends a maximum of seven manager nodes and notes that adding managers can reduce performance. · docs.docker.com, 7 Oct 2026
- Networking
- Swarm supports overlay networks for communication among Docker daemons in the cluster and includes an ingress network for load balancing. · docs.docker.com, 7 Oct 2026
- Network requirements
- Swarm nodes need TCP/UDP port 7946 for network discovery and UDP port 4789 by default for overlay data traffic. · docs.docker.com, 7 Oct 2026
- Overlay limit
- Docker recommends /24 overlay network blocks, which limit a network to 256 IP addresses. · docs.docker.com, 7 Oct 2026
- Purpose
- Swarm mode is an advanced feature for managing a cluster of Docker daemons and is intended for production runtime environments. · docs.docker.com, 7 Oct 2026
- Scheduling
- Swarm supports replicated services and global services that run one task on every node. · docs.docker.com, 7 Oct 2026
- Security
- Swarm nodes use mutual TLS to authenticate and encrypt communications, with a minimum TLS version of 1.2. · docs.docker.com, 7 Oct 2026
- Service discovery
- Swarm assigns services DNS names and supports virtual IP load balancing or DNS round-robin discovery. · docs.docker.com, 7 Oct 2026
- 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. · docs.docker.com, 7 Oct 2026
- Updates
- Swarm can roll out service updates incrementally and roll back to a previous service version if something goes wrong. · docs.docker.com, 7 Oct 2026
Where Docker Swarm stands on Freedom251
- Container Orchestration Software#2 of 32
