Can someone help me to manually create the ever elusive DockerNAT switch correctly?

Expected behavior

Just trying to get the install of Docker for Windows to complete successfully.

Actual behavior

Various mystery failures that all point back to DockerNAT

Information

I have been trying to complete this process for a few weeks now. My laptop has been upgraded from Windows 7 to Windows 10. Actually here is the log output during installation:
[11:53:07.968][Program ][Info ] OS: Windows 10 Pro
[11:53:07.968][Program ][Info ] Edition: Professional
[11:53:07.968][Program ][Info ] Id: 1511
[11:53:07.968][Program ][Info ] Build: 10586
[11:53:07.968][Program ][Info ] BuildLabName: 10586.212.amd64fre.th2_release_sec.160328-1908

Steps to reproduce the behavior

  1. Everything I do to install Docker for Windows fails and the errors are all related to DockerNAT switch
  2. all variations of hyperv installation and removal and various Docker updates or installs — all fail.
    Here is the last portion of log of failure"
    [11:53:13.171][Updater ][Info ] Found remote version. Version = 1.11.1.2446
    [11:53:13.171][Updater ][Info ] Local version is up to date.
    [11:53:13.171][Updater ][Info ] Check for update done.
    [11:53:14.343][Firewall ][Info ] Ports are opened
    [11:53:14.358][HyperV ][Info ] Create
    [11:53:14.358][PowerShell ][Info ] Run script with parameters: -Create True -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso…
    [11:53:14.999][HyperV ][Info ] Using existing Switch: DockerNAT
    [11:53:15.171][HyperV ][Info ] Using existing Switch IP address
    [11:53:15.202][HyperV ][Info ] Creating Net NAT: DockerNAT…
    [11:53:15.249][Notifications ][Error ] Error: Failed to create Switch “DockerNAT”: The parameter is incorrect…

Can anyone offer insight as to how I might get verbose information surrounding the “parameter is incorrect” — like what parameter?

I don’t know if this helps, but I needed two switches.

One for external, bound to the network card.

One for docker, and it was made for me by the docker install (I think).

anyway, I needed to bind both to the docker vm using the hyper-v console.

Hi Mike

with Beta11 we update the troubleshoot page. Could you follow the instructions outlined there for resolving networking issues?

Thanks
Rolf

Thanks for the note. I did the upgrade to Beta11 and followed the troubleshoot page. That page seems to have a pretty nice playbook regarding the network challenges I faced earlier.

One thing regarding that troubleshoot page----there is nothing indicating what to do about the IPV6 interfaces — should those be removed as well?
My NEW problem is that the VM wont’ start, enclosed is the log file from the last start. [BTW —I have rebooted and removed HyperV and Docker4Windows and tried all the combinations for the same lack of VM starting.]
[23:21:17.339][Program ][Info ] Version 1.11.1-beta12 (build: 3073)
[23:21:17.339][Program ][Info ] Starting on: 5/18/2016 11:21:17 PM
[23:21:17.339][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[23:21:17.339][Program ][Info ] OS: Windows 10 Pro
[23:21:17.339][Program ][Info ] Edition: Professional
[23:21:17.339][Program ][Info ] Id: 1511
[23:21:17.355][Program ][Info ] Build: 10586
[23:21:17.355][Program ][Info ] BuildLabName: 10586.306.amd64fre.th2_release_sec.160422-1850
[23:21:17.355][Program ][Info ] Mixpanel Id: 4ebd02fb-3043-4b50-abdf-4164bae585ae
[23:21:17.355][Program ][Info ] Sha1: 2fb5b031ee60c8a9b514883b54bcea8cf6d2ae8f
[23:21:17.355][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[23:21:17.511][Mixpanel ][Info ] Tracking: appLaunched
[23:21:17.839][Mixpanel ][Info ] Tracking: heartbeat
[23:21:17.902][NamedPipeClient][Info ] Sending Version()…
[23:21:17.917][NamedPipeClient][Info ] Received response for Version
[23:21:17.917][NamedPipeClient][Info ] Sending CheckInstallation()…
[23:17:23.956][BackendServer ][Info ] Started
[23:21:17.917][NamedPipeServer][Info ] Version()
[23:21:17.917][NamedPipeServer][Info ] Version done.
[23:21:17.917][NamedPipeServer][Info ] CheckInstallation()
[23:21:17.917][HyperV ][Info ] Check Hyper-V Windows optional feature
[23:21:17.917][PowerShell ][Info ] Run script…
[23:21:19.113][HyperV ][Info ] Hyper-V Windows feature is enabled
[23:21:19.113][NamedPipeClient][Info ] Received response for CheckInstallation
[23:21:19.113][NamedPipeServer][Info ] CheckInstallation done.
[23:21:19.128][NamedPipeClient][Info ] Sending CheckHyperVState()…
[23:21:19.128][NamedPipeServer][Info ] CheckHyperVState()
[23:21:19.128][HyperV ][Info ] Check Hyper-V Service State
[23:21:19.160][PowerShell ][Info ] Run script with parameters: -Check True…
[23:21:24.737][HyperV ][Info ] Hyper-V is running and responding
[23:21:24.737][NamedPipeClient][Info ] Received response for CheckHyperVState
[23:21:24.737][HyperV ][Info ] Hyper-V is running
[23:21:24.737][NamedPipeServer][Info ] CheckHyperVState done.
[23:21:25.002][Authentication ][Info ] Checking token
[23:21:25.237][Authentication ][Info ] Token is valid
[23:21:25.346][NamedPipeClient][Info ] Sending Stop()…
[23:21:25.346][NamedPipeServer][Info ] Stop()
[23:21:25.346][HyperV ][Info ] Stop
[23:21:25.346][PowerShell ][Info ] Run script with parameters: -Stop True…
[23:21:25.362][Updater ][Info ] Checking for updates on channel Beta…
[23:21:25.877][Updater ][Info ] Found remote version. Version = 1.11.1.3073
[23:21:25.893][Updater ][Info ] Local version is up to date.
[23:21:25.893][Updater ][Info ] Check for updates done.
[23:21:26.018][HyperV ][Info ] Kill VM MobyLinuxVM…
[23:21:26.049][HyperV ][Info ] VM MobyLinuxVM is stopped
[23:21:26.049][Firewall ][Info ] Closing ports…
[23:21:26.049][PowerShell ][Info ] Run script…
[23:21:27.533][Firewall ][Info ] Ports are closed
[23:21:27.533][NamedPipeClient][Info ] Received response for Stop
[23:21:27.533][NamedPipeServer][Info ] Stop done.
[23:21:27.533][NamedPipeClient][Info ] Sending Start(2, 2048)…
[23:21:27.533][NamedPipeServer][Info ] Start(2, 2048)
[23:21:27.549][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe and C:\Program Files\Docker\Docker\com.docker.service…
[23:21:27.549][PowerShell ][Info ] Run script…
[23:21:28.799][Firewall ][Info ] Ports are opened
[23:21:28.799][HyperV ][Info ] Create
[23:21:28.799][PowerShell ][Info ] Run script with parameters: -Create True -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso…
[23:21:29.393][HyperV ][Info ] Using existing Switch: DockerNAT
[23:21:29.627][HyperV ][Info ] Using existing Switch IP address
[23:21:29.690][HyperV ][Info ] Using existing Net NAT: DockerNAT
[23:21:31.158][HyperV ][Info ] Using existing: MobyLinuxVM
[23:21:31.424][HyperV ][Info ] Setting MobyLinuxVM vm CPUs to 2 and Memory to 2048 MB
[23:21:31.424][Dhcp ][Info ] Dhcp starting on port 67, on interface vEthernet (DockerNAT)…
[23:21:31.487][Dhcp ][Info ] Dhcp started.
[23:21:31.487][Proxy ][Info ] Starting com.docker.proxy
[23:21:31.643][HyperV ][Info ] Start
[23:21:31.643][PowerShell ][Info ] Run script with parameters: -Start True…
[23:21:31.705][Proxy ][Info ] docker proxy (on deprecated port): ready
[23:21:31.705][Proxy ][Info ] poison pill: ready. Will kill ourself if parent process com.docker.service dies
[23:21:31.705][Proxy ][Info ] docker proxy: ready
[23:21:31.715][Proxy ][Info ] dns server: ready
[23:21:32.125][HyperV ][Info ] Starting VM MobyLinuxVM…
[23:22:35.873][NamedPipeServer][Error ] Unable to execute Start: Failed to start VM “MobyLinuxVM”: ‘MobyLinuxVM’ failed to start.

‘MobyLinuxVM’ failed to initialize.

‘MobyLinuxVM’ failed to start. (Virtual machine ID 1AF32321-D7FA-43CC-9516-7DC829C65CE0)

‘MobyLinuxVM’ failed to initialize. (Virtual machine ID 1AF32321-D7FA-43CC-9516-7DC829C65CE0) at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[23:22:36.001][NamedPipeClient][Error ] Unable to send Start: Failed to start VM “MobyLinuxVM”: ‘MobyLinuxVM’ failed to start.

‘MobyLinuxVM’ failed to initialize.

‘MobyLinuxVM’ failed to start. (Virtual machine ID 1AF32321-D7FA-43CC-9516-7DC829C65CE0)

‘MobyLinuxVM’ failed to initialize. (Virtual machine ID 1AF32321-D7FA-43CC-9516-7DC829C65CE0)
[23:22:36.009][Notifications ][Error ] Failed to start VM “MobyLinuxVM”: ‘MobyLinuxVM’ failed to start.

‘MobyLinuxVM’ failed to initialize.

‘MobyLinuxVM’ failed to start. (Virtual machine ID 1AF32321-D7FA-43CC-9516-7DC829C65CE0)

‘MobyLinuxVM’ failed to initialize. (Virtual machine ID 1AF32321-D7FA-43CC-9516-7DC829C65CE0)
[23:22:36.015][NamedPipeClient][Info ] Sending GetDebugInfo()…
[23:22:36.021][NamedPipeServer][Info ] GetDebugInfo()
[23:22:46.647][NamedPipeServer][Info ] GetDebugInfo done.
[23:22:46.650][NamedPipeClient][Info ] Received response for GetDebugInfo
[23:22:46.669][Program ][Info ] Sending Bugsnag report c3cb62ef-eb81-498f-9725-c79b77f9d232 …
[23:22:47.295][Program ][Info ] Bugsnag report sent