Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Create docker-machine remote connection
  2.  
  3. docker-machine create --driver generic \
  4. --generic-ip-address=136.144.31.9 \
  5. --generic-ssh-key ~/.ssh/id_rsa \
  6. --engine-storage-driver overlay env-2294395
  7.  
  8. Connect to the environment
  9.  
  10. eval $(docker-machine env env-2294395)
  11.  
  12. Add a Manager node to the cluster
  13.  
  14. docker swarm join \
  15. --token SWMTKN-1-021cddetlk3qpnp23khb9aj9ccuf67h632wcn7mzmhqunl6ndk-ba56e63sqy0af1ovdcnikfc6j \
  16. 136.144.31.9:2377
  17.  
  18. Add a Woker node to the cluster
  19.  
  20. docker swarm join \
  21. --token SWMTKN-1-021cddetlk3qpnp23khb9aj9ccuf67h632wcn7mzmhqunl6ndk-4g4lf8alw6a576y52hlebyby6 \
  22. 136.144.31.9:2377
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement