docker-swarm
Installation
SKILL.md
Docker Swarm
Overview
Docker Swarm provides native clustering and orchestration for Docker containers, enabling deployment across multiple hosts. This skill should be invoked when deploying and managing containers across multiple hosts with features like load balancing, scaling, and service discovery.
Core Principles
- Manager-Worker: Swarm uses manager nodes for orchestration, workers for workloads
- Services: Define services that specify container images and configuration
- Stacks: Use stacks to deploy multi-service applications
- Secrets: Use Docker secrets for sensitive data
Preparation Checklist
- Install Docker on all nodes
- Plan network architecture (overlay networks)
- Design service topology
- Prepare Docker Compose files