Selaa lähdekoodia

Merge pull request #33053 from simonferquel/ignore-private-networks

Ignore HNS networks with type `Private`
Vincent Demeester 8 vuotta sitten
vanhempi
commit
0c2f3bcd82
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      daemon/daemon_windows.go

+ 3 - 0
daemon/daemon_windows.go

@@ -327,6 +327,9 @@ func (daemon *Daemon) initNetworkController(config *config.Config, activeSandbox
 	// discover and add HNS networks to windows
 	// discover and add HNS networks to windows
 	// network that exist are removed and added again
 	// network that exist are removed and added again
 	for _, v := range hnsresponse {
 	for _, v := range hnsresponse {
+		if strings.ToLower(v.Type) == "private" {
+			continue // workaround for HNS reporting unsupported networks
+		}
 		var n libnetwork.Network
 		var n libnetwork.Network
 		s := func(current libnetwork.Network) bool {
 		s := func(current libnetwork.Network) bool {
 			options := current.Info().DriverOptions()
 			options := current.Info().DriverOptions()