From 0ccfd7dc20c11bc2f9d646c98cc67fb399cd9013 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 26 Apr 2018 12:20:25 -0400 Subject: Retrieve IP addresses for container from DB Instead of execing out to the host's IP, use the IP address we got back from CNI to populate Inspect's IP address information. Signed-off-by: Matthew Heon Closes: #680 Approved by: umohnani8 --- pkg/inspect/inspect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/inspect') diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go index 4a7c96aa1..b2dd1e1c0 100644 --- a/pkg/inspect/inspect.go +++ b/pkg/inspect/inspect.go @@ -199,7 +199,7 @@ type NetworkSettings struct { Gateway string `json:"Gateway"` GlobalIPv6Addresses []string `json:"GlobalIPv6Addresses"` GlobalIPv6PrefixLen int `json:"GlobalIPv6PrefixLen"` - IPAddress string `json:"IPAddress"` + IPAddress []string `json:"IPAddress"` IPPrefixLen int `json:"IPPrefixLen"` IPv6Gateway string `json:"IPv6Gateway"` MacAddress string `json:"MacAddress"` -- cgit v1.2.3-54-g00ecf