Docker 1.12.0-rc3-beta18 fails to start on Windows 10


Docker would start


Fails to start with - Failed to create Switch “DockerNAT”: Invalid class


Crash report: D088100C-A293-4EAD-B217-0C73FE6D964F/2016-07-08_07-15-42

[07:15:20.754][Program ][Info ] 1.12.0-rc3-beta18
[07:15:20.758][Program ][Info ] Starting on: 7/8/2016 7:15:20 AM
[07:15:20.760][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[07:15:20.763][Program ][Info ] OS: Windows 10 Pro
[07:15:20.766][Program ][Info ] Edition: Professional
[07:15:20.766][Program ][Info ] Id: 1511
[07:15:20.766][Program ][Info ] Build: 10586
[07:15:20.766][Program ][Info ] BuildLabName: 10586.0.amd64fre.th2_release.151029-1700
[07:15:20.766][Program ][Info ] Mixpanel Id: D088100C-A293-4EAD-B217-0C73FE6D964F
[07:15:20.766][Program ][Info ] Sha1: ec40b14c72adc0bff3b01fa8886dae7f2eee1541
[07:15:20.783][Program ][Info ] You can send feedback, including this log file, at
[07:15:20.986][TrackingStatus ][Info ] Crash report and usage statistics are enabled
[07:15:21.017][Mixpanel ][Info ] Usage Statistic: appLaunched
[07:15:21.196][NamedPipeClient][Info ] Sending Version()…
[07:15:21.215][NamedPipeClient][Info ] Received response for Version
[07:15:21.219][Mixpanel ][Info ] Usage Statistic: heartbeat
[07:15:20.331][BackendServer ][Info ] Started
[07:15:21.214][NamedPipeServer][Info ] Version()
[07:15:21.214][NamedPipeServer][Info ] Version done.
[07:15:21.345][Notifications ][Info ] Docker is starting…
[07:15:21.347][Updater ][Info ] Checking for updates on channel Beta…
[07:15:21.357][NamedPipeClient][Info ] Sending Stop()…
[07:15:21.360][NamedPipeServer][Info ] Stop()
[07:15:21.361][HyperV ][Info ] Stop
[07:15:21.366][PowerShell ][Info ] Run script with parameters: -Stop True…
[07:15:21.514][Updater ][Info ] Local build 5226 is as good as the remote 5226 on channel Beta
[07:15:24.585][HyperV ][Info ] VM MobyLinuxVM does not exist
[07:15:24.591][NamedPipeClient][Info ] Received response for Stop
[07:15:24.594][NamedPipeClient][Info ] Sending Start(Docker.Core.Settings)…
[07:15:24.591][NamedPipeServer][Info ] Stop done.
[07:15:24.598][NamedPipeServer][Info ] Start(Docker.Core.Settings)
[07:15:24.599][HyperVGuids ][Info ] Installing GUIDs…
[07:15:24.600][HyperVGuids ][Info ] GUIDs installed
[07:15:24.607][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe…
[07:15:25.289][Firewall ][Info ] Ports are opened
[07:15:25.290][HyperV ][Info ] Create
[07:15:25.291][PowerShell ][Info ] Run script with parameters: -Create True -SwitchSubnetAddress -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso…
[07:15:25.865][HyperV ][Info ] Using existing Switch: DockerNAT
[07:15:26.139][NamedPipeServer][Error ] Unable to execute Start: Failed to create Switch “DockerNAT”: Invalid class at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[07:15:26.145][NamedPipeClient][Error ] Unable to send Start: Failed to create Switch “DockerNAT”: Invalid class
[07:15:26.146][NamedPipeClient][Info ] Sending CheckInstallation()…
[07:15:26.146][NamedPipeServer][Info ] CheckInstallation()
[07:15:26.146][HyperV ][Info ] Check Hyper-V Windows optional feature
[07:15:26.146][PowerShell ][Info ] Run script…
[07:15:26.700][NamedPipeClient][Info ] Received response for CheckInstallation
[07:15:26.699][HyperV ][Info ] Hyper-V Windows feature is enabled
[07:15:26.699][NamedPipeServer][Info ] CheckInstallation done.
[07:15:26.705][NamedPipeClient][Info ] Sending CheckHyperVState()…
[07:15:26.715][NamedPipeServer][Info ] CheckHyperVState()
[07:15:26.715][HyperV ][Info ] Check Hyper-V Service State
[07:15:26.716][PowerShell ][Info ] Run script with parameters: -Check True…
[07:15:27.136][HyperV ][Info ] Hyper-V is running and responding
[07:15:27.136][HyperV ][Info ] Hyper-V is running
[07:15:27.136][NamedPipeClient][Info ] Received response for CheckHyperVState
[07:15:27.136][NamedPipeServer][Info ] CheckHyperVState done.
[07:15:27.136][Notifications ][Error ] Failed to create Switch “DockerNAT”: Invalid class
[07:15:27.163][NamedPipeClient][Info ] Sending GetDebugInfo()…
[07:15:27.166][NamedPipeServer][Info ] GetDebugInfo()
[07:15:40.885][NamedPipeServer][Info ] GetDebugInfo done.
[07:15:40.887][NamedPipeClient][Info ] Received response for GetDebugInfo
[07:15:40.900][Program ][Info ] Sending Bugsnag report 81884e46-5d0c-4538-ba88-c640d082f975…
[07:15:42.095][Program ][Info ] Bugsnag report 81884e46-5d0c-4538-ba88-c640d082f975 sent
[07:15:42.105][NamedPipeClient][Info ] Sending DownloadVmLogs()…
[07:15:42.109][NamedPipeServer][Info ] DownloadVmLogs()
[07:15:42.111][PowerShell ][Info ] Run script…
[07:15:42.117][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”.
[07:15:42.118][NamedPipeServer][Info ] DownloadVmLogs done.
[07:15:42.118][NamedPipeClient][Info ] Received response for DownloadVmLogs
[07:19:04.862][ErrorReportWindow][Info ] Open logs
[07:19:50.626][ErrorReportWindow][Info ] Open forums
[07:30:57.556][FeedbackSettings][Info ] Open logs

Steps to reporoduce:

Install Docker for Windows and try to start it.