Docker Swarm Docker का built-in container orchestration tool है — जो Docker hosts के एक समूह को एक cluster में बदल देता है जिसे familiar Docker commands से manage किया जाता है। यह Kubernetes से simpler लेकिन कम powerful है; दोनों को समझना situation के लिए सही orchestration चुनने में मदद करता है।
Docker Swarm क्या प्रदान करता है
Swarm clusters multiple Docker hosts and orchestrates containers ("services"):
✓ Built into Docker — uses familiar Docker CLI/Compose-like syntax (low learning curve)
✓ SERVICES with replicas; scheduling across nodes; SELF-HEALING (restart failed tasks)
✓ Scaling, ROLLING UPDATES/rollbacks, overlay networking, service discovery, secrets
✓ Load balancing (built-in routing mesh)
docker swarm init
docker service create --replicas 3 --name web -p 80:80 nginx
docker service scale web=5
docker service update --image nginx:1.25 web
