Skip to content

Connect Multiple Edge Nodes At Same Network

Anselmo Battisti edited this page Mar 23, 2020 · 5 revisions

To connect all the edge nodes inside the same network you will need to follow this instructions.

https://www.google.com/search?q=connect+multiple+docker+host&oq=connect+multiple+docker+host&aqs=chrome..69i57.5430j0j1&sourceid=chrome&ie=UTF-8#kpvalbx=_Qjp5Xt7mB8jM5OUPs_Cs4Ao23

1 - Inside the machine that runs ALFA execute

docker swarm init

2 - Copy the join command and run it inside each Edge Node that will run your VMS

docker swarm join --token SWMTKN-1-2keeu7dw10oe4ou8wehslivxg3fmj692q32h9md4fquzatj3y3-2vxcjib0z1cbgktked6ynkjvu 192.168.0.104:2377

3 - Create a network using overlay driver (-d is the driver type)

docker network create -d overlay swarm_network

docker run --network alfa_swarm_network -it --rm alpine /bin/ash