1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fixes #23596-returns empty string for NetworkID in response to /containers/json

Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
Sainath Grandhi 2016-06-16 12:31:23 -07:00
parent 1f3efe6776
commit ad85d29906

View file

@ -465,6 +465,7 @@ func (daemon *Daemon) transformContainer(container *container.Container, ctx *li
GlobalIPv6Address: network.GlobalIPv6Address, GlobalIPv6Address: network.GlobalIPv6Address,
GlobalIPv6PrefixLen: network.GlobalIPv6PrefixLen, GlobalIPv6PrefixLen: network.GlobalIPv6PrefixLen,
MacAddress: network.MacAddress, MacAddress: network.MacAddress,
NetworkID: network.NetworkID,
} }
if network.IPAMConfig != nil { if network.IPAMConfig != nil {
networks[name].IPAMConfig = &networktypes.EndpointIPAMConfig{ networks[name].IPAMConfig = &networktypes.EndpointIPAMConfig{