Browse Source

Fix for docker intercepting DNS requests on ICS network

Signed-off-by: Sandeep Bansal <sabansal@microsoft.com>
Sandeep Bansal 7 years ago
parent
commit
2a219a04cc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libnetwork/network_windows.go

+ 3 - 0
libnetwork/network_windows.go

@@ -28,6 +28,9 @@ func executeInCompartment(compartmentID uint32, x func()) {
 }
 }
 
 
 func (n *network) startResolver() {
 func (n *network) startResolver() {
+	if n.networkType == "ics" {
+		return
+	}
 	n.resolverOnce.Do(func() {
 	n.resolverOnce.Do(func() {
 		logrus.Debugf("Launching DNS server for network %q", n.Name())
 		logrus.Debugf("Launching DNS server for network %q", n.Name())
 		options := n.Info().DriverOptions()
 		options := n.Info().DriverOptions()