docker swarm join itself code example
Example: join docker swarm
# On the manager node, retrieve the join-token for the specified node type
docker swarm join-token worker
docker swarm join-token manager
# On the worker node
docker swarm join --token <token> ip:port