Fixed cluster creation script

This commit is contained in:
Gianluca Arbezzano 2017-09-05 16:15:05 +02:00
parent bf2c8cc43c
commit c14816e196
No known key found for this signature in database
GPG Key ID: 9505D2809E1D6180

View File

@ -15,7 +15,6 @@ docker-machine ssh sw1 docker swarm init --advertise-addr ${MANAGER_IP}
TOKEN=$(docker-machine ssh sw1 docker swarm join-token -q worker)
docker-machine ssh sw2 docker swarm join --token ${TOKEN} ${MANAGER_IP}:2377
docker-machine ssh sw3 docker swarm join --token ${TOKEN} ${MANAGER_IP}:2377
docker-machine ssh sw4 docker swarm join --token ${TOKEN} ${MANAGER_IP}:2377
# Information
echo ""