mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Merge pull request #29877 from mavenugo/npfilter
Use GetAllByCap to get list of network plugins in docker info Upstream-commit: 4617b66c90eb54119d54f459f48f873f583731df Component: engine
This commit is contained in:
@@ -407,6 +407,13 @@ func (daemon *Daemon) GetNetworkDriverList() []string {
|
||||
}
|
||||
|
||||
pluginList := daemon.netController.BuiltinDrivers()
|
||||
|
||||
managedPlugins := daemon.PluginStore.GetAllManagedPluginsByCap(driverapi.NetworkPluginEndpointType)
|
||||
|
||||
for _, plugin := range managedPlugins {
|
||||
pluginList = append(pluginList, plugin.Name())
|
||||
}
|
||||
|
||||
pluginMap := make(map[string]bool)
|
||||
for _, plugin := range pluginList {
|
||||
pluginMap[plugin] = true
|
||||
|
||||
Reference in New Issue
Block a user