Docker Community Forums

Share and learn in the Docker community.

GET /info is not listing all the node details when using legacy swarm with docker version 17.06


(Phanirajtabjul) #1

GET /info is not listing all the node details when using legacy swarm with docker version 17.06

It was listing all the nodes with docker version 1.11, recently we have updated docker to the latest version.
I am expecting the output as

$ docker info
Containers: 4
Strategy: spread
Filters: affinity, health, constraint, port, dependency
Nodes: 3
node0: 192.168.99.105:2376
└ Containers: 1
└ Reserved CPUs: 0 / 8
└ Reserved Memory: 0 B / 1.023 GiB
node1: 192.168.99.106:2376
└ Containers: 1
└ Reserved CPUs: 0 / 8
└ Reserved Memory: 0 B / 1.023 GiB
node2: 192.168.99.104:2376
└ Containers: 2
└ Reserved CPUs: 0 / 8

I know that Docker swarm(legacy) is deprecated from 1.12 and need to use Swarm mode, but i want to use legacy one till we re-write the application made compatible with Swarm mode.

Could you please suggest me whether legacy swarm is still supports with V17.06, if it doesn’t support how to get the list of nodes with ‘Reserved CPUs/Memory’ details in Swam mode.