Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
docker -H tcp://<swarm-ip>:<swarm-port> info only sees 1 node whereas swarm list sees whole cluster #1467
I've setup a 3 node cluster each running docker, swarm and consul. All nodes are identical in that they run the same version for the docker,swarm, consul stack, including same base ubuntu image:
$docker -H tcp://10.128.1.65:2375 info
$docker -H tcp://10.128.2.104:2375 info
$docker -H tcp://10.128.3.174:2375 info
docker -H tcp://10.128.1.65:8333 info
I have tried this countless times but the swarm manager ALWAYS ONLY list the same node (10.128.2.104). it fails to to list itself(10.128.1.65) , and node 10.128.3.174.
Any insight appreciated.
Hi @barbarello, are you cloning your VMs to setup your nodes? My first guess is that your docker daemons have the same unique IDs because of the cloning, thus the Manager will only see one Agent as it will assume that this is the same underlying docker Engine.
docker -H tcp://10.128.1.65:2375 info | grep ID
all return the same ID: DSPS:LTON:S4ZH:5VJY:PU6A:MUMO:5KQT:LPMU:VN7G:PZVE:Q6ZX:E3QF
If this is what ye're referring to, then
Will report back here after that.
@barbelio Yes because it will keep the same
Tagging as a