From 1e5ee1dd375b3c1d292cd73feb7a98e9e50ce713 Mon Sep 17 00:00:00 2001 From: Sainath Grandhi Date: Thu, 16 Jun 2016 12:31:23 -0700 Subject: [PATCH] Fixes #23596-returns empty string for NetworkID in response to /containers/json Signed-off-by: Sainath Grandhi (cherry picked from commit ad85d299066e87cd40afc43ffee8cb73dcc79eb4) --- daemon/list.go | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/list.go b/daemon/list.go index 5d45de6964..128d9eda9c 100644 --- a/daemon/list.go +++ b/daemon/list.go @@ -465,6 +465,7 @@ func (daemon *Daemon) transformContainer(container *container.Container, ctx *li GlobalIPv6Address: network.GlobalIPv6Address, GlobalIPv6PrefixLen: network.GlobalIPv6PrefixLen, MacAddress: network.MacAddress, + NetworkID: network.NetworkID, } if network.IPAMConfig != nil { networks[name].IPAMConfig = &networktypes.EndpointIPAMConfig{