A comprehensive developer cheatsheet covering Docker Swarm and container orchestration, featuring essential CLI commands and operational workflows for managing nodes, services, stacks, secrets, and configs.
Understanding Docker Swarm
What is Docker Swarm?
Docker Swarm is a container orchestration tool that turns a group of Docker hosts into a single, virtual Docker host. It provides clustering, service discovery, and load balancing.
Swarm Concepts
Concept
Description
Manager Node
Controls the swarm, schedules tasks
Worker Node
Runs containers
Service
Desired state of a container
Stack
Group of services (compose file)
Secret
Sensitive data (encrypted)
Config
Non-sensitive configuration
Swarm vs Kubernetes
Feature
Docker Swarm
Kubernetes
Complexity
Simple
Complex
Setup
Minutes
Hours
Native Docker
Yes
No
Scaling
Yes
Yes
Load Balancing
Built-in
Requires Ingress
Use Case
Small-medium
Large, complex
The rest of this sheet is locked7 Pro sheets unlock together, across every toolEveryPro sheet, every toolLifetimeone payment, no renewalNewsheets included as they shipOne-time payment · lifetime access