I’m seeing some strange behavior with a docker swarm. I’m using consul for discovery and can see all the nodes (using consul members and swarm list); however, from the manager I only see one node in the swarm (swarm info). if I restart the swarm, sometimes it is the same node, sometimes it is a different node, but it is always just a single node. Any ideas? Here’s some output to illustrate the issue.
docker run --rm swarm list consul://10.20.30.25:8500/swarm
docker -H tcp://0.0.0.0:8888 info
└ Containers: 1
└ Reserved CPUs: 0 / 1
└ Reserved Memory: 0 B / 1.887 GiB
└ Labels: executiondriver=native-0.2, kernelversion=3.10.0-229.el7.x86_64, operatingsystem=CentOS Linux 7 (Core), storagedriver=devicemapper
Total Memory: 1.887 GiB