Docker swarm mode initialiser based on docker4x/init-aws which is used by Docker for AWS.
On each swarm node run the following to initialise and join the cluster.
docker run --restart=no -e DYNAMODB_TABLE=$DYNAMODB_TABLE -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker depost/init-aws-swarm