1 - Run on the first machine
docker swarm init
2 - Run on other machines to be included to the cluser (swarm)
docker swarm join <IP of manager>:2377
3 - To run new services (containers)
docker service create --replicas <number> --name <name to be given service> --network <network name> -p <container-port:host-port> <name of image>
4 - To scale up or down a service
docker service update --replicas <number> <service name>
5 - To constrain services to certain machines with labels
docker service create --replicas <number> --name <service name> --network <network name> -p <container-port:host-port> --constraint <key==value> <image name>