Windows: [TP4] docker info crashes

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-11-19 11:02:25 -08:00
parent 758fae5f6b
commit 37d2a70038

View file

@ -152,6 +152,9 @@ func (daemon *Daemon) DisconnectContainerFromNetwork(containerName string, netwo
func (daemon *Daemon) GetNetworkDriverList() map[string]bool {
pluginList := make(map[string]bool)
if !daemon.NetworkControllerEnabled() {
return nil
}
c := daemon.netController
networks := c.Networks()