dashersw / cote

A Node.js library for building zero-configuration microservices.

Home Page:http://cote.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make cote work with docker?

crapthings opened this issue · comments

docker swarm init
docker plugin install weaveworks/net-plugin:latest_release
docker plugin disable weaveworks/net-plugin:latest_release
docker plugin set weaveworks/net-plugin:latest_release WEAVE_MULTICAST=1
docker plugin enable weaveworks/net-plugin:latest_release
docker network create --driver=weaveworks/net-plugin:latest_release --attachable mynetwork
docker run --network=mynetwork -d cotest1
docker run --network=mynetwork -d cotest2

this is what i did, but it seems cotest2 doesn't discovery cotest1

i can't make weaveworks work

but

docker swarm int
"docker service create --network host" works

Weave enables multicast communication, however cote by default uses broadcast communication. You can try something like the following:

COTE_MULTICAST_ADDRESS=239.1.11.111 node service.js