Wednesday, February 28, 2018

weave net with docker composer

To setup weave net on 3 nodes.

weave launch 2nd_node_ip 3rd_node_ip
weave launch 1st_node_ip 3rd_node_ip
weave launch 1st_node_ip 2nd_node_ip

Once the weave net is up running, do the following

eval $(weave env)

to reset the env

eval $(weave env --restore)

To use docker composer launch a container, it is very important to have the following two things ready

1. eval $(weave env)
2. make sure that hostname is like this mycontainer1.weave.local


useful commands

weave status
weave status connections
weave stop
weave reset --force