Failed to create switch "DockerNAT": Element not found

Expected behavior

Attempting to start Docker for Windows Beta

Actual behavior

Ends with
Failed to create switch “DockerNAT”: Element not found.

Host: Windows 10 Professional

Log Output

[14:23:57.736][Program ][Info ] Version 1.11.1-beta13 (build: 3441)
[14:23:57.744][Program ][Info ] Starting on: 5/30/2016 2:23:57 PM
[14:23:57.750][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[14:23:57.757][Program ][Info ] OS: Windows 10 Pro
[14:23:57.763][Program ][Info ] Edition: Professional
[14:23:57.771][Program ][Info ] Id: 1511
[14:23:57.777][Program ][Info ] Build: 10586
[14:23:57.784][Program ][Info ] BuildLabName: 10586.306.amd64fre.th2_release_sec.160422-1850
[14:23:57.792][Program ][Info ] Mixpanel Id: E15DBE2A-3404-44DD-A146-D3F4A6A2DF28
[14:23:57.800][Program ][Info ] Sha1: 5307146e79f6a634960d05da93adc33cf602d1f1
[14:23:57.805][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[14:23:58.080][Mixpanel ][Info ] Tracking: appLaunched
[14:23:58.589][NamedPipeClient][Info ] Sending Version()…
[14:23:58.616][NamedPipeClient][Info ] Received response for Version
[14:23:58.627][Mixpanel ][Info ] Tracking: heartbeat
[14:23:42.035][BackendServer ][Info ] Started
[14:23:58.603][NamedPipeServer][Info ] Version()
[14:23:58.609][NamedPipeServer][Info ] Version done.
[14:23:58.769][NamedPipeClient][Info ] Sending CheckInstallation()…
[14:23:58.777][NamedPipeServer][Info ] CheckInstallation()
[14:23:58.784][HyperV ][Info ] Check Hyper-V Windows optional feature
[14:23:58.802][PowerShell ][Info ] Run script…
[14:24:01.359][HyperV ][Info ] Hyper-V Windows feature is enabled
[14:24:01.369][NamedPipeClient][Info ] Received response for CheckInstallation
[14:24:01.363][NamedPipeServer][Info ] CheckInstallation done.
[14:24:01.374][NamedPipeClient][Info ] Sending CheckHyperVState()…
[14:24:01.383][NamedPipeServer][Info ] CheckHyperVState()
[14:24:01.390][HyperV ][Info ] Check Hyper-V Service State
[14:24:01.403][PowerShell ][Info ] Run script with parameters: -Check True…
[14:24:12.083][HyperV ][Info ] Hyper-V is running and responding
[14:24:12.109][NamedPipeClient][Info ] Received response for CheckHyperVState
[14:24:12.094][HyperV ][Info ] Hyper-V is running
[14:24:12.101][NamedPipeServer][Info ] CheckHyperVState done.
[14:24:12.290][Authentication ][Info ] Checking token
[14:24:12.383][Authentication ][Info ] Token is valid
[14:24:12.847][Updater ][Info ] Checking for updates on channel Beta…
[14:24:12.877][Notifications ][Info ] Docker is Initializing…
[14:24:12.933][NamedPipeClient][Info ] Sending Stop()…
[14:24:12.945][NamedPipeServer][Info ] Stop()
[14:24:12.960][HyperV ][Info ] Stop
[14:24:12.982][PowerShell ][Info ] Run script with parameters: -Stop True…
[14:24:17.392][HyperV ][Info ] VM MobyLinuxVM does not exist
[14:24:17.412][Firewall ][Info ] Closing ports…
[14:24:17.418][PowerShell ][Info ] Run script…
[14:24:20.169][Firewall ][Info ] Ports are closed
[14:24:20.175][HyperVGuids ][Info ] Removing GUIDs…
[14:24:20.180][HyperVGuids ][Info ] GUIDs removed
[14:24:20.191][NamedPipeClient][Info ] Received response for Stop
[14:24:20.185][NamedPipeServer][Info ] Stop done.
[14:24:20.219][NamedPipeClient][Info ] Sending Start(2, 2048, auto, 10.0.75.0, 24)…
[14:24:20.225][NamedPipeServer][Info ] Start(2, 2048, auto, 10.0.75.0, 24)
[14:24:20.238][HyperVGuids ][Info ] Installing GUIDs…
[14:24:20.256][HyperVGuids ][Info ] GUIDs installed
[14:24:20.270][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe and C:\Program Files\Docker\Docker\com.docker.service…
[14:24:20.280][PowerShell ][Info ] Run script…
[14:24:22.924][Firewall ][Info ] Ports are opened
[14:24:22.930][HyperV ][Info ] Create
[14:24:22.935][PowerShell ][Info ] Run script with parameters: -Create True -SwitchSubnetAdress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso…
[14:24:27.230][HyperV ][Info ] True
[14:24:27.478][HyperV ][Info ] Using existing Switch: DockerNAT
[14:24:28.453][NamedPipeServer][Error ] Unable to execute Start: Failed to create Switch “DockerNAT”: Element not found.
at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[14:24:28.483][NamedPipeClient][Error ] Unable to send Start: Failed to create Switch “DockerNAT”: Element not found.

[14:24:28.491][Notifications ][Error ] Failed to create Switch “DockerNAT”: Element not found.

[14:24:28.501][NamedPipeClient][Info ] Sending GetDebugInfo()…
[14:24:28.511][NamedPipeServer][Info ] GetDebugInfo()
[14:24:42.478][NamedPipeServer][Info ] GetDebugInfo done.
[14:24:42.491][NamedPipeClient][Info ] Received response for GetDebugInfo
[14:24:42.524][Program ][Info ] Sending Bugsnag report 115cc95d-b799-48dd-83b4-15a8b64d0a06 …
[14:24:43.615][Program ][Info ] Bugsnag report sent
[14:24:44.039][NamedPipeClient][Info ] Sending GetVmMaxMemory()…
[14:24:44.057][NamedPipeServer][Info ] GetVmMaxMemory()
[14:24:44.069][PowerShell ][Info ] Run script…
[14:24:44.858][HyperV ][Warning] Input string was not in a correct format.
[14:24:44.881][NamedPipeServer][Info ] GetVmMaxMemory done.
[14:24:44.891][NamedPipeClient][Info ] Received response for GetVmMaxMemory
[14:24:55.788][Updater ][Info ] Found remote version. Version = 1.11.1.3441
[14:24:55.797][Updater ][Info ] Local version is up to date.
[14:24:55.803][Updater ][Info ] Check for updates done.

Steps to reproduce the behavior

  1. Executing …
    “C:\Program Files\Docker\Docker\DockerForWindows.exe”

Got same error with rc3-beta18 (build 5193)

Have you try Reset to factory defaults in the reset settings?

Can you dump the log if it fails?

I have the same issue. Restarting and resetting to defaults did not work. Also tried to re-install. See attached log file. Version is 1.12-rc3-beta18.

log-2016-07-11_09-07-59.txt (5.4 KB)

I have the same issue, reinstalling and resetting to defaults also did not work. Version 1.12.0-rc4-beta20 (build: 5579)

[09:36:23.200][Program        ][Info   ] 1.12.0-rc4-beta20
[09:36:23.202][Program        ][Info   ] Starting on: 7/28/2016 9:36:23 AM
[09:36:23.203][Program        ][Info   ] Resources: C:\Program Files\Docker\Docker\Resources
[09:36:23.205][Program        ][Info   ] OS: Windows 10 Pro
[09:36:23.206][Program        ][Info   ] Edition: Professional
[09:36:23.207][Program        ][Info   ] Id: 1511
[09:36:23.207][Program        ][Info   ] Build: 10586
[09:36:23.208][Program        ][Info   ] BuildLabName: 10586.494.amd64fre.th2_release_sec.160630-1736
[09:36:23.209][Program        ][Info   ] Sha1: 4b0b82cdeaf03c68ac73915fd3f672eae491719d
[09:36:23.210][Program        ][Info   ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[09:36:25.015][TrackingStatus ][Info   ] Crash report and usage statistics are enabled
[09:36:25.046][Mixpanel       ][Info   ] Id: 3209F7B5-64A8-4264-A353-98ACF2229F72
[09:36:25.102][Mixpanel       ][Info   ] Usage Statistic: appLaunched
[09:36:25.323][NamedPipeClient][Info   ] Sending Version()...
[09:36:25.337][NamedPipeClient][Info   ] Received response for Version
[09:36:25.341][Mixpanel       ][Info   ] Usage Statistic: heartbeat
[09:33:23.436][BackendServer  ][Info   ] Started
[09:36:25.335][NamedPipeServer][Info   ] Version()
[09:36:25.335][NamedPipeServer][Info   ] Version done.
[09:36:26.277][Notifications  ][Info   ] Docker is starting...
[09:36:26.279][Updater        ][Info   ] Checking for updates on channel Beta...
[09:36:26.295][NamedPipeClient][Info   ] Sending Stop()...
[09:36:26.296][NamedPipeServer][Info   ] Stop()
[09:36:26.298][HyperV         ][Info   ] Stop
[09:36:26.325][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[09:36:26.726][Updater        ][Info   ] Local build 5579 is as good as the remote 5579 on channel Beta
[09:36:36.044][HyperV         ][Info   ] VM MobyLinuxVM does not exist
[09:36:36.062][NamedPipeServer][Info   ] Stop done.
[09:36:36.063][NamedPipeClient][Info   ] Received response for Stop
[09:36:36.065][NamedPipeClient][Info   ] Sending Start(Docker.Core.Settings)...
[09:36:36.067][NamedPipeServer][Info   ] Start(Docker.Core.Settings)
[09:36:36.069][HyperVGuids    ][Info   ] Installing GUIDs...
[09:36:36.074][HyperVGuids    ][Info   ] GUIDs installed
[09:36:36.107][Firewall       ][Info   ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[09:36:37.100][Firewall       ][Info   ] Ports are opened
[09:36:37.105][HyperV         ][Info   ] Create
[09:36:37.106][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[09:36:39.232][HyperV         ][Info   ] Enabled workaround for Build 10586 VMSwitch issue
[09:36:46.303][HyperV         ][Info   ] Creating Switch: DockerNAT...
[09:36:49.438][HyperV         ][Info   ] Switch created.
[09:36:51.471][NamedPipeServer][Error  ] Unable to execute Start: Failed to create Switch "DockerNAT": Element not found.
    at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[09:36:51.560][NamedPipeClient][Error  ] Unable to send Start: Failed to create Switch "DockerNAT": Element not found.

[09:36:51.561][NamedPipeClient][Info   ] Sending CheckInstallation()...
[09:36:51.564][NamedPipeServer][Info   ] CheckInstallation()
[09:36:51.566][HyperV         ][Info   ] Check Hyper-V Windows optional feature
[09:36:51.568][PowerShell     ][Info   ] Run script...
[09:36:57.679][HyperV         ][Info   ] Hyper-V Windows feature is enabled
[09:36:57.682][NamedPipeClient][Info   ] Received response for CheckInstallation
[09:36:57.680][NamedPipeServer][Info   ] CheckInstallation done.
[09:36:57.684][NamedPipeClient][Info   ] Sending CheckHyperVState()...
[09:36:57.686][NamedPipeServer][Info   ] CheckHyperVState()
[09:36:57.688][HyperV         ][Info   ] Check Hyper-V Service State
[09:36:57.690][PowerShell     ][Info   ] Run script with parameters: -Check True...
[09:37:01.804][HyperV         ][Info   ] Hyper-V is running
[09:37:01.808][NamedPipeClient][Info   ] Received response for CheckHyperVState
[09:37:01.805][NamedPipeServer][Info   ] CheckHyperVState done.
[09:37:01.815][Notifications  ][Error  ] Failed to create Switch "DockerNAT": Element not found.

[09:37:01.865][NamedPipeClient][Info   ] Sending GetDebugInfo()...
[09:37:01.868][NamedPipeServer][Info   ] GetDebugInfo()
[09:37:28.132][NamedPipeServer][Info   ] GetDebugInfo done.
[09:37:28.137][NamedPipeClient][Info   ] Received response for GetDebugInfo
[09:37:28.175][Program        ][Info   ] Sending Bugsnag report 7abe8df5-6311-4d59-9570-a34cfe462942...
[09:37:29.008][Program        ][Info   ] Bugsnag report 7abe8df5-6311-4d59-9570-a34cfe462942 sent
[09:37:29.063][NamedPipeClient][Info   ] Sending DownloadVmLogs()...
[09:37:29.064][NamedPipeServer][Info   ] DownloadVmLogs()
[09:37:29.067][PowerShell     ][Info   ] Run script...
[09:37:29.082][HyperV         ][Warning] Unable to download logs: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V was unable to find a virtual machine with name "MobyLinuxVM".
[09:37:29.083][NamedPipeClient][Info   ] Received response for DownloadVmLogs
[09:37:29.083][NamedPipeServer][Info   ] DownloadVmLogs done.
[09:39:45.511][FeedbackSettings][Info   ] Upload diagnostic
[09:39:45.513][Program        ][Info   ] Sending Bugsnag report bdcd6a3d-0882-44f9-87e7-88f71bb90163...
[09:39:46.204][Program        ][Info   ] Bugsnag report bdcd6a3d-0882-44f9-87e7-88f71bb90163 sent
[09:39:46.207][NamedPipeClient][Info   ] Sending DownloadVmLogs()...
[09:39:46.209][NamedPipeServer][Info   ] DownloadVmLogs()
[09:39:46.210][PowerShell     ][Info   ] Run script...
[09:39:46.223][HyperV         ][Warning] Unable to download logs: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V was unable to find a virtual machine with name "MobyLinuxVM".
[09:39:46.224][NamedPipeServer][Info   ] DownloadVmLogs done.
[09:39:46.226][NamedPipeClient][Info   ] Received response for DownloadVmLogs
[09:42:26.832][Notifications  ][Info   ] Docker is resetting to default...
[09:42:26.890][NamedPipeClient][Info   ] Sending Stop()...
[09:42:26.892][NamedPipeServer][Info   ] Stop()
[09:42:26.892][HyperV         ][Info   ] Stop
[09:42:26.894][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[09:42:29.184][HyperV         ][Info   ] VM MobyLinuxVM does not exist
[09:42:29.201][NamedPipeClient][Info   ] Received response for Stop
[09:42:29.202][NamedPipeClient][Info   ] Sending Destroy(False)...
[09:42:29.200][NamedPipeServer][Info   ] Stop done.
[09:42:29.205][NamedPipeServer][Info   ] Destroy(False)
[09:42:29.208][HyperV         ][Info   ] Destroy
[09:42:29.208][PowerShell     ][Info   ] Run script with parameters: -Destroy True...
[09:42:31.265][HyperV         ][Info   ] VM MobyLinuxVM does not exist
[09:42:31.269][HyperV         ][Info   ] Destroying Switch DockerNAT...
[09:42:35.773][HyperV         ][Info   ] Destroying VM MobyLinuxVM...
[09:42:36.064][Firewall       ][Info   ] Closing ports...
[09:42:37.219][Firewall       ][Info   ] Ports are closed
[09:42:37.221][HyperVGuids    ][Info   ] Removing GUIDs...
[09:42:37.241][HyperVGuids    ][Info   ] GUIDs removed
[09:42:37.242][NamedPipeClient][Info   ] Received response for Destroy
[09:42:37.242][NamedPipeServer][Info   ] Destroy done.
[09:42:37.353][Cmd            ][Info   ] 
[09:42:37.353][Cmd            ][Info   ] CMDKEY: Element not found.
[09:42:37.367][NamedPipeClient][Info   ] Sending DeleteDatabase()...
[09:42:37.368][NamedPipeServer][Info   ] DeleteDatabase()
[09:42:37.371][Database       ][Warning] Could not find a part of the path 'C:\ProgramData\Docker\database'.
[09:42:37.372][NamedPipeClient][Info   ] Received response for DeleteDatabase
[09:42:37.372][NamedPipeServer][Info   ] DeleteDatabase done.
[09:42:37.432][Notifications  ][Info   ] Docker is starting...
[09:42:37.447][NamedPipeClient][Info   ] Sending Stop()...
[09:42:37.451][NamedPipeServer][Info   ] Stop()
[09:42:37.452][HyperV         ][Info   ] Stop
[09:42:37.454][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[09:42:39.884][HyperV         ][Info   ] VM MobyLinuxVM does not exist
[09:42:39.898][NamedPipeClient][Info   ] Received response for Stop
[09:42:39.900][NamedPipeClient][Info   ] Sending Start(Docker.Core.Settings)...
[09:42:39.897][NamedPipeServer][Info   ] Stop done.
[09:42:39.902][NamedPipeServer][Info   ] Start(Docker.Core.Settings)
[09:42:39.903][HyperVGuids    ][Info   ] Installing GUIDs...
[09:42:39.920][HyperVGuids    ][Info   ] GUIDs installed
[09:42:39.921][Firewall       ][Info   ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[09:42:40.879][Firewall       ][Info   ] Ports are opened
[09:42:40.880][HyperV         ][Info   ] Create
[09:42:40.882][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[09:42:42.952][HyperV         ][Info   ] Enabled workaround for Build 10586 VMSwitch issue
[09:42:49.301][HyperV         ][Info   ] Creating Switch: DockerNAT...
[09:42:51.916][HyperV         ][Info   ] Switch created.
[09:42:53.436][NamedPipeServer][Error  ] Unable to execute Start: Failed to create Switch "DockerNAT": Element not found.
    at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[09:42:53.438][NamedPipeClient][Error  ] Unable to send Start: Failed to create Switch "DockerNAT": Element not found.

[09:42:53.439][NamedPipeClient][Info   ] Sending CheckInstallation()...
[09:42:53.448][NamedPipeServer][Info   ] CheckInstallation()
[09:42:53.449][HyperV         ][Info   ] Check Hyper-V Windows optional feature
[09:42:53.450][PowerShell     ][Info   ] Run script...
[09:42:57.720][HyperV         ][Info   ] Hyper-V Windows feature is enabled
[09:42:57.721][NamedPipeClient][Info   ] Received response for CheckInstallation
[09:42:57.722][NamedPipeClient][Info   ] Sending CheckHyperVState()...
[09:42:57.720][NamedPipeServer][Info   ] CheckInstallation done.
[09:42:57.724][NamedPipeServer][Info   ] CheckHyperVState()
[09:42:57.724][HyperV         ][Info   ] Check Hyper-V Service State
[09:42:57.725][PowerShell     ][Info   ] Run script with parameters: -Check True...
[09:43:00.456][HyperV         ][Info   ] Hyper-V is running
[09:43:00.457][NamedPipeClient][Info   ] Received response for CheckHyperVState
[09:43:00.458][Notifications  ][Error  ] Failed to create Switch "DockerNAT": Element not found.

[09:43:00.456][NamedPipeServer][Info   ] CheckHyperVState done.
[09:43:00.469][Program        ][Info   ] Sending Bugsnag report 81c331e0-c3dd-4ad0-8e37-35c22d9120e6...
[09:43:01.166][Program        ][Info   ] Bugsnag report 81c331e0-c3dd-4ad0-8e37-35c22d9120e6 sent
[09:43:01.170][NamedPipeClient][Info   ] Sending DownloadVmLogs()...
[09:43:01.174][NamedPipeServer][Info   ] DownloadVmLogs()
[09:43:01.174][PowerShell     ][Info   ] Run script...
[09:43:01.190][NamedPipeClient][Info   ] Received response for DownloadVmLogs
[09:43:01.188][HyperV         ][Warning] Unable to download logs: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V was unable to find a virtual machine with name "MobyLinuxVM".
[09:43:01.189][NamedPipeServer][Info   ] DownloadVmLogs done.
[09:48:38.846][FeedbackSettings][Info   ] Open logs