Welcome on board!! We sincerely thank you all for joining us. This document provides some hopefully useful instructions to prepare the machine's image for spinning a node to join the Swarm created by this project, and the join instructions.
- We need a machine with 512MB of RAM, 1 vCore, 20GB disk, and a public IPv4 address. Yes we need a public IP for each node.
- Install Ubuntu 16.04 (or choose your own OS)
- As root, run
curl -sSL https://experimental.docker.com | sh
- Stop the Docker service, run
service docker stop
- Remove the key file, run
rm /etc/docker/key.json
. This is the really important step. - Shut it down and take snapshot
- SSH to each of your node
- Check if you're really running Docker 1.12-rc4. Run
$ docker version
- Start joining. Run
$ docker swarm join <IP>:2377 --secret <SECRET>
- Logout
Please feel free to use any script to loop over those.
Assuming that you've got a node setup with root access via SSH and key pairs, just do this single-liner for each node:
ssh root@<YOUR NODE IP> docker swarm join <MANAGER IP>:2377 --secret <SECRET>
For large scale, please feel free to use any script to loop over those.