mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4ca7b01a5c
Without this change, specifying a remote network driver on Windows results in "could not resolve driver X in registry" error. Signed-off-by: Michal Kostrzewa <kostrzewa.michal@o2.pl>
20 lines
550 B
Go
20 lines
550 B
Go
package libnetwork
|
|
|
|
import (
|
|
"github.com/docker/libnetwork/drivers/null"
|
|
"github.com/docker/libnetwork/drivers/remote"
|
|
"github.com/docker/libnetwork/drivers/windows"
|
|
"github.com/docker/libnetwork/drivers/windows/overlay"
|
|
)
|
|
|
|
func getInitializers() []initializer {
|
|
return []initializer{
|
|
{null.Init, "null"},
|
|
{overlay.Init, "overlay"},
|
|
{remote.Init, "remote"},
|
|
{windows.GetInit("transparent"), "transparent"},
|
|
{windows.GetInit("l2bridge"), "l2bridge"},
|
|
{windows.GetInit("l2tunnel"), "l2tunnel"},
|
|
{windows.GetInit("nat"), "nat"},
|
|
}
|
|
}
|