This fix tries to address the issue raised in 27695 where
duplicate `nat` and `null` has been listed in `docker info`
for Windows.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
... | ... |
@@ -364,6 +364,9 @@ func (daemon *Daemon) GetNetworkDriverList() []string { |
364 | 364 |
|
365 | 365 |
pluginList := daemon.netController.BuiltinDrivers() |
366 | 366 |
pluginMap := make(map[string]bool) |
367 |
+ for _, plugin := range pluginList { |
|
368 |
+ pluginMap[plugin] = true |
|
369 |
+ } |
|
367 | 370 |
|
368 | 371 |
networks := daemon.netController.Networks() |
369 | 372 |
|