added node ip autodetection

Manager now auto-detects the address that an agent connects to the cluster
from and stores it. This is useful for many kinds of internal cluster
management tools.

Signed-off-by: Drew Erny <drew.erny@docker.com>
This commit is contained in:
Drew Erny 2016-10-24 16:11:25 -07:00 committed by Tibor Vass
parent 0e7bbb55c8
commit 194bb052dc
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,8 @@ Example output:
} }
}, },
"Status": { "Status": {
"State": "ready" "State": "ready",
"Addr": "168.0.32.137"
}, },
"ManagerStatus": { "ManagerStatus": {
"Leader": true, "Leader": true,
@ -110,6 +111,7 @@ Example output:
Status: Status:
State: Ready State: Ready
Availability: Active Availability: Active
Address: 172.17.0.2
Manager Status: Manager Status:
Address: 172.17.0.2:2377 Address: 172.17.0.2:2377
Raft Status: Reachable Raft Status: Reachable