Docker Swarm
Swarm is Docker's built-in clustering and orchestration mode, turning a group of Docker hosts into a single virtual host.
docker swarm init # initialise a manager node
docker swarm join --token <token> <manager-ip>:2377 # join from a worker
docker node ls
docker service create --name web --replicas 3 -p 80:80 nginx
docker service ls
docker service ps web
docker service scale web=5
docker service update --image nginx:1.27 web
docker stack deploy -c docker-compose.yml mystack
docker service rm web
For release strategy, a blue/green deployment is the common approach: run the new version alongside the old, shift traffic once it is healthy, and keep the old version available for rollback.
In practice most organisations have standardised on Kubernetes for orchestration. Swarm remains useful for small clusters and is far simpler to learn, but new production platforms are rarely built on it.