docker-machine create manager1
docker-machine create worker1
docker-machine create worker2
docker-machine ip manager1
docker-machine ssh manager1
docker swarm init --advertise-addr <manager1-ipaddress>
docker swarm join-token worker
Sample join command for a worker node
docker swarm join --token <token> <manager-ip>
docker-machine ssh worker1
docker swarm join --token <token> <manager-ip>
docker-machine ssh worker2
docker swarm join --token <token> <manager-ip>
docker info
docker service create --replicas 1 --name helloworld alpine ping docker.com
docker service scale <SERVICE-ID>=<NUMBER-OF-TASKS>
eval "$(docker-machine env manager1)"