Various notes for Docker Swarm.
For a firewall template, see docker-swarm iptables template.
This assumes there will be a 3 node cluster with all 3 nodes being a manager.
Create the swarm on a single host initially:
docker swarm init
A manager token can then be generated for the other 2 nodes:
docker swarm join-token manager
For non-worker nodes, leave off the manager part of the join token command.
To list nodes:
docker node ls
To get general information for the cluster:
docker system info
To get detailed information for a specific node:
docker node inspect <NODE HOSTNAME OR ID>
To update a service
docker service update --image image/name:tag --force service_name