Multiple supervisors not able to gossip

Hello,

I have a docker image with habitat installed and I am running three containers as:
docker run -ti my-image:latest

Inside each of them I’m running the following commands:

Container 1
hab sup run

Container 2
hab sup run --peer=172.18.0.2

Container 3
hab sup run --peer=172.18.0.2

Here, 172.18.0.2 is the IP address of the first container.

But when I open $CONTAINER_IP:9631/services, I get a blank response.

What could be going wrong?

@indradhanush in a browser is the response 100% blank? Or is there any information at all?

@eeyun It’s completely blank:

$ curl http://172.18.0.2:9631/services
[]

I tried exporting the docker image for core/redis and was able to get the supervisors to communicate. Apart from this I realized that I was not passing the --topology=leader flag and my Dockerfile was not configured to run a service in the container.

This issue can be considered as resolved now. :slight_smile:

1 Like