зеркало из https://github.com/microsoft/docker.git
Remove duplicate `nat`, `null` in `docker info` for Windows
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>
This commit is contained in:
Родитель
67b85f9d26
Коммит
3347aba957
|
@ -364,6 +364,9 @@ func (daemon *Daemon) GetNetworkDriverList() []string {
|
||||||
|
|
||||||
pluginList := daemon.netController.BuiltinDrivers()
|
pluginList := daemon.netController.BuiltinDrivers()
|
||||||
pluginMap := make(map[string]bool)
|
pluginMap := make(map[string]bool)
|
||||||
|
for _, plugin := range pluginList {
|
||||||
|
pluginMap[plugin] = true
|
||||||
|
}
|
||||||
|
|
||||||
networks := daemon.netController.Networks()
|
networks := daemon.netController.Networks()
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче