Docker desktop failed to start due to hyper-V?

i have installed docker desktop at windows server 2016 but the docker refused to starts, throwing error about hyper-V
attached the log, not sure what should i configure now.

Version: 2.0.0.3 (31259)
Channel: stable
Sha1: 8858db33c8692b69de9987a5d672798d778735b2
Started on: 2019/11/05 04:52:46.918
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows Server 2016 Standard
Edition: ServerStandard
Id: 1607
Build: 14393
BuildLabName: 14393.3269.amd64fre.rs1_release.190929-1234

[04:52:47.045][GUI ][Info ] Starting…
[04:52:47.665][ComponentVersions][Info ] Edition community
[04:53:11.295][Tracking ][Info ] Crash report and usage statistics are enabled
[04:53:11.301][SegmentApi ][Info ] Usage statistic: appLaunched
[04:53:11.557][SegmentApi ][Info ] Usage statistic: heartbeat
[04:53:11.559][SegmentApi ][Info ] Usage statistic: Identify
[04:53:12.863][WootricService ][Warning] Could not get NPS authentication token, JSON value not found. (Exception from HRESULT: 0x83750009)
[04:53:14.267][SegmentApi ][Info ] Usage statistic: eventNotElectedForFeature
[04:53:14.267][SegmentApi ][Info ] Usage statistic: stateFeatureDisabled
[04:53:14.277][NamedPipeClient][Info ] Sending Version()…
[04:53:14.318][NamedPipeClient][Info ] Received response for Version
[04:53:14.321][NamedPipeClient][Info ] Sending MigrateApp()…
[04:49:44.731][BackendServer ][Info ] Started
[04:53:14.316][NamedPipeServer][Info ] Version()
[04:53:14.317][NamedPipeServer][Info ] Version done in 00:00:00.0009980.
[04:53:14.352][NamedPipeClient][Info ] Received response for MigrateApp
[04:53:14.347][NamedPipeServer][Info ] MigrateApp()
[04:53:14.349][NamedPipeServer][Info ] MigrateApp done in 00:00:00.0019995.
[04:53:14.363][Notifications ][Info ] Docker Desktop is starting…
[04:53:14.405][NamedPipeClient][Info ] Sending Version()…
[04:53:14.407][NamedPipeClient][Info ] Received response for Version
[04:53:14.407][NamedPipeClient][Info ] Sending RegisterFileAssociations(C:\Program Files\Docker\Docker\Docker for Windows.exe)…
[04:53:14.406][NamedPipeServer][Info ] Version()
[04:53:14.411][NamedPipeClient][Info ] Received response for RegisterFileAssociations
[04:53:14.407][NamedPipeServer][Info ] Version done in 00:00:00.0009995.
[04:53:14.411][NamedPipeClient][Info ] Sending Version()…
[04:53:14.412][NamedPipeClient][Info ] Received response for Version
[04:53:14.412][NamedPipeClient][Info ] Sending EnableVersionPack(default, Docker.Core.Settings)…
[04:53:14.408][NamedPipeServer][Info ] RegisterFileAssociations(C:\Program Files\Docker\Docker\Docker for Windows.exe)
[04:53:14.409][FileTypeRegistrar][Info ] Registering file association for extension .ddvp
[04:53:14.410][NamedPipeServer][Info ] RegisterFileAssociations done in 00:00:00.0019985.
[04:53:14.412][NamedPipeServer][Info ] Version()
[04:53:14.412][NamedPipeServer][Info ] Version done in 00:00:00.
[04:53:14.416][NamedPipeServer][Info ] EnableVersionPack(default, Docker.Core.Settings)
[04:53:14.491][NPS ][Error ] Error in NPS process: Unable to create wootric user : http status : Unauthorized
[04:53:14.494][NamedPipeClient][Info ] Received response for EnableVersionPack
[04:53:14.494][NamedPipeServer][Info ] EnableVersionPack done in 00:00:00.0780020.
[04:53:14.517][NamedPipeClient][Info ] Sending Version()…
[04:53:14.518][NamedPipeClient][Info ] Received response for Version
[04:53:14.518][NamedPipeClient][Info ] Sending Start(Linux, Docker.Core.Settings, Docker.Core.DaemonOptions)…
[04:53:14.518][NamedPipeServer][Info ] Version()
[04:53:14.518][NamedPipeServer][Info ] Version done in 00:00:00.
[04:53:14.519][NamedPipeServer][Info ] Start(Linux, Docker.Core.Settings, Docker.Core.DaemonOptions)
[04:53:14.523][PowerMode ][Info ] Stop
[04:53:14.526][HyperV ][Info ] Stop
[04:53:14.581][PowerShell ][Info ] Run script with parameters: -Stop True
[04:53:14.602][PowerShell ][Info ] Creating a Runspace Pool…
[04:53:15.048][Notifications ][Info ] Can’t update
[04:53:15.674][PowerShell ][Info ] Runspace Pool created (Min=1, Max=2)
[04:53:15.967][HyperV ][Info ] Script started at 04:53:15.959
[04:53:22.029][HyperV ][Info ] Modules loaded at 04:53:22.029
[04:53:23.626][HyperV ][Info ] VM MobyLinuxVM does not exist
[04:53:23.627][HyperV ][Debug ] [stop] took 00:00:09.1007588 to run
[04:53:23.628][OptimizeDisk ][Info ] Optimize
[04:53:23.629][PowerShell ][Info ] Run script…
[04:53:23.654][Moby ][Info ] Stop
[04:53:23.662][PowerMode ][Info ] Start
[04:53:23.662][HyperVGuids ][Info ] Installing GUIDs…
[04:53:23.665][Firewall ][Info ] Removing all existing rules…
[04:53:23.665][HyperVGuids ][Info ] GUIDs installed
[04:53:23.677][Firewall ][Info ] All existing rules are removed.
[04:53:23.677][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe…
[04:53:23.682][Firewall ][Info ] Opening ports for SMB…
[04:53:23.693][HyperV ][Info ] Create
[04:53:23.720][PowerShell ][Info ] Run script with parameters: -Create True -VhdPathOverride -VhdSize 64000000000 -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\docker-for-win.iso
[04:53:23.759][Firewall ][Info ] Ports are opened
[04:53:23.783][HyperV ][Info ] Script started at 04:53:23.783
[04:53:23.803][HyperV ][Info ] Modules loaded at 04:53:23.803
[04:53:24.170][HyperV ][Info ] Creating Switch: DockerNAT…
[04:53:26.719][HyperV ][Info ] Switch created.
[04:53:28.455][HyperV ][Info ] Set IP address on switch
[04:53:31.755][HyperV ][Info ] Creating VM MobyLinuxVM…
[04:53:33.967][HyperV ][Info ] Setting CPUs to 2 and Memory to 2048 MB
[04:53:34.114][HyperV ][Info ] Creating dynamic VHD: C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx
[04:53:35.752][HyperV ][Info ] Attach VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx
[04:53:36.348][SegmentApi ][Info ] Usage statistic: eventElectedForFeature
[04:53:36.349][SegmentApi ][Info ] Usage statistic: stateFeatureEnabled
[04:53:36.516][HyperV ][Info ] Connect Internal Switch DockerNAT
[04:53:36.875][HyperV ][Info ] Attach DVD C:\Program Files\Docker\Docker\Resources\docker-for-win.iso
[04:53:37.573][HyperV ][Info ] Disabled Guest Service Interface
[04:53:37.593][HyperV ][Info ] Enabled Heartbeat
[04:53:37.614][HyperV ][Info ] Disabled Key-Value Pair Exchange
[04:53:37.632][HyperV ][Info ] Enabled Shutdown
[04:53:37.645][HyperV ][Info ] Enabled Time Synchronization
[04:53:37.660][HyperV ][Info ] Disabled VSS
[04:53:37.902][HyperV ][Info ] VM created.
[04:53:37.903][HyperV ][Debug ] [create] took 00:00:14.1834700 to run
[04:53:37.903][PowerShell ][Info ] Run script ‘(Hyper-V\Get-VM MobyLinuxVM).Id.Guid’…
[04:53:37.963][IsoConfig ][Info ] Generating CA Cert Bundle
[04:53:37.986][IsoConfig ][Info ] CA Cert Bundle Generated
[04:53:42.439][SegmentApi ][Info ] Usage statistic: actionMenuCloudLogin
[04:53:43.358][Moby ][Info ] Connecting…
[04:53:43.358][Moby ][Error ] Failed to read Moby’s logs: The operation has timed out.
[04:53:43.361][HyperV ][Info ] Start
[04:53:43.374][PowerShell ][Info ] Run script with parameters: -Start True -IsoFile C:\Program Files\Docker\Docker\Resources\docker-for-win.iso -confIsoFile C:\ProgramData\DockerDesktop\tmp-d4w\config.iso -DockerIsoFile C:\Program Files\Docker\Docker\Resources\docker.iso -VhdPathOverride
[04:53:43.624][HyperV ][Info ] Script started at 04:53:43.624
[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Setting handler to ignore all SIGPIPE signals

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Version is c02cba63f65891a669df3415a2b37cb4b8577144

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: System SOMAXCONN is 2147483647

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Will use a listen backlog of 32

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: No periodic Gc.compact enabled

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Will forward ports over AF_HVSOCK to vpnkit-forwarder on AF_HYPERV { vmid = 97f98cff-c136-4540-adbf-178bca1ea02c; serviceid = 0000F3A5-FACB-11E6-BD58-64006A7986D3 }

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Removed connection limit

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Starting port forwarding control 9P server on //./pipe/dockerVpnKitControl

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Will forward ports over AF_HVSOCK to vpnkit-forwarder on AF_HYPERV { vmid = 97f98cff-c136-4540-adbf-178bca1ea02c; serviceid = 0000F3A5-FACB-11E6-BD58-64006A7986D3 }

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Removed connection limit

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Starting port forwarding control 9P server on hyperv-listen://00000000-0000-0000-0000-000000000000/0000F3A5-FACB-11E6-BD58-64006A7986D3

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Listening on AF_HYPERV { vmid = 00000000-0000-0000-0000-000000000000; serviceid = 0000F3A5-FACB-11E6-BD58-64006A7986D3 }

[04:53:43.930][VpnKit ][Error ] vpnkit.exe: Caught A socket operation encountered a dead network.

[04:53:43.930][VpnKit ][Info ] while creating Hyper-V socket

[04:53:43.930][VpnKit ][Warning] vpnkit.exe: There is no database: using hardcoded network configuration values

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: DNS server configured with no builtin DNS names; everything will be forwarded

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: 2 upstream DNS servers are configured

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Disabling transparent HTTP redirection

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Updating resolvers to use upstream DNS servers

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Secure random number generator is available

[04:53:43.930][VpnKit ][Info ] vpnkit.exe: Add(3): DNS configuration changed to: use upstream DNS servers

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: DNS server configured with builtin DNS names [ gateway.docker.internal -> 192.168.65.1, docker.for.win.gateway.internal -> 192.168.65.1, docker.for.win.http.internal -> 192.168.65.1, host.docker.internal -> 192.168.65.2, docker.for.win.host.internal -> 192.168.65.2, docker.for.win.localhost -> 192.168.65.2, vm.internal -> 192.168.65.3 ]

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: 0 upstream DNS servers are configured

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: DNS configuration file C:\Users\devadmin\AppData\Roaming\Docker\resolv.conf has changed

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Reading DNS configuration from C:\Users\devadmin\AppData\Roaming\Docker\resolv.conf

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Watching DNS configuration file C:\Users\devadmin\AppData\Roaming\Docker\resolv.conf for changes

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Transparent HTTP redirection configuration file C:\Users\devadmin\AppData\Roaming\Docker\http_proxy.json has changed

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Reading transparent HTTP redirection from C:\Users\devadmin\AppData\Roaming\Docker\http_proxy.json

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Watching transparent HTTP redirection configuration file C:\Users\devadmin\AppData\Roaming\Docker\http_proxy.json for changes

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: DHCP configuration file C:\Users\devadmin\AppData\Roaming\Docker\dhcp.json has changed

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Reading DHCP configuration file from C:\Users\devadmin\AppData\Roaming\Docker\dhcp.json

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Watching DHCP configuration file C:\Users\devadmin\AppData\Roaming\Docker\dhcp.json for changes

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Configuration server_macaddr = f6:16:36:bc:f9:c6; max_connection = None; dns_path = C:\Users\devadmin\AppData\Roaming\Docker\resolv.conf; dns = ; resolver = Upstream; domain = None; allowed_bind_addresses = 0.0.0.0; gateway_ip = 192.168.65.1; host_ip = 192.168.65.2; lowest_ip = 192.168.65.3; highest_ip = 192.168.65.254; dhcp_json_path = C:\Users\devadmin\AppData\Roaming\Docker\dhcp.json; dhcp_configuration = None; mtu = 1500; http_intercept = None; http_intercept_path = C:\Users\devadmin\AppData\Roaming\Docker\http_proxy.json; port_max_idle_time = 300; host_names = host.docker.internal, docker.for.win.host.internal, docker.for.win.localhost; gateway_names = gateway.docker.internal, docker.for.win.gateway.internal, docker.for.win.http.internal; vm_names = vm.internal; udpv4_forwards = ; pcap_snaplen = 128

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Listening on AF_HYPERV { vmid = 00000000-0000-0000-0000-000000000000; serviceid = 30D48B34-FACB-11E6-BD58-64006A7986D3 }

[04:53:43.931][VpnKit ][Error ] vpnkit.exe: Caught A socket operation encountered a dead network.

[04:53:43.931][VpnKit ][Info ] while creating Hyper-V socket

[04:53:43.931][VpnKit ][Error ] vpnkit.exe: While watching /etc/resolv.conf: ENOENT

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: C:\Windows\System32\drivers\etc\hosts file has bindings for

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Update DHCP configuration to { searchDomains = devlab.thedevcloud.net, thedevcloud.net, ; domainName = localdomain }

[04:53:43.931][VpnKit ][Info ] vpnkit.exe: Updating transparent HTTP redirection: {

[04:53:43.931][VpnKit ][Info ] “exclude”: “”,

[04:53:43.931][VpnKit ][Info ] “transparent_http_ports”: [

[04:53:43.931][VpnKit ][Info ] 80

[04:53:43.932][VpnKit ][Info ] ],

[04:53:43.932][VpnKit ][Info ] “transparent_https_ports”: [

[04:53:43.932][VpnKit ][Info ] 443

[04:53:43.932][VpnKit ][Info ] ]

[04:53:43.932][VpnKit ][Info ] }

[04:53:43.932][VpnKit ][Info ] vpnkit.exe: Updating DNS configuration to nameserver 172.24.220.12#53

[04:53:43.932][VpnKit ][Info ] order 0

[04:53:43.932][VpnKit ][Info ] nameserver 172.24.220.11#53

[04:53:43.932][VpnKit ][Info ] order 0

[04:53:43.932][VpnKit ][Info ] vpnkit.exe: Updating resolvers to use upstream DNS servers nameserver 172.24.220.12#53

[04:53:43.932][VpnKit ][Info ] order 0

[04:53:43.932][VpnKit ][Info ] nameserver 172.24.220.11#53

[04:53:43.932][VpnKit ][Info ] order 0

[04:53:43.932][VpnKit ][Info ] vpnkit.exe: Secure random number generator is available

[04:53:43.932][VpnKit ][Info ] vpnkit.exe: Remove(3): DNS configuration changed to: use upstream DNS servers nameserver 8.8.8.8#53

[04:53:43.932][VpnKit ][Info ] timeout 2000

[04:53:43.932][VpnKit ][Info ] order 0

[04:53:43.932][VpnKit ][Info ] nameserver 8.8.4.4#53

[04:53:43.932][VpnKit ][Info ] timeout 2000

[04:53:43.932][VpnKit ][Info ] order 0

[04:53:43.932][VpnKit ][Info ] vpnkit.exe: Add(3): DNS configuration changed to: use upstream DNS servers nameserver 172.24.220.12#53

[04:53:43.932][VpnKit ][Info ] order 0

[04:53:43.932][VpnKit ][Info ] nameserver 172.24.220.11#53

[04:53:43.932][VpnKit ][Info ] order 0

[04:53:43.932][VpnKit ][Info ] vpnkit.exe: DNS server configured with builtin DNS names [ gateway.docker.internal -> 192.168.65.1, docker.for.win.gateway.internal -> 192.168.65.1, docker.for.win.http.internal -> 192.168.65.1, host.docker.internal -> 192.168.65.2, docker.for.win.host.internal -> 192.168.65.2, docker.for.win.localhost -> 192.168.65.2, vm.internal -> 192.168.65.3 ]

[04:53:43.932][VpnKit ][Info ] vpnkit.exe: 2 upstream DNS servers are configured

[04:53:44.233][HyperV ][Info ] Modules loaded at 04:53:44.233
[04:53:44.249][HyperV ][Info ] Starting VM MobyLinuxVM…
[04:53:44.553][HyperV ][Info ] Remove existing DVDs
[04:53:44.902][VpnKit ][Error ] vpnkit.exe: Caught A socket operation encountered a dead network.

[04:53:44.902][VpnKit ][Info ] while creating Hyper-V socket

[04:53:44.902][HyperV ][Info ] Attach DVD C:\Program Files\Docker\Docker\Resources\docker-for-win.iso
[04:53:44.902][VpnKit ][Error ] vpnkit.exe: Caught A socket operation encountered a dead network.

[04:53:44.902][VpnKit ][Info ] while creating Hyper-V socket

[04:53:45.041][HyperV ][Info ] Attach Config ISO C:\ProgramData\DockerDesktop\tmp-d4w\config.iso
[04:53:45.747][HyperV ][Info ] Attach Docker ISO C:\Program Files\Docker\Docker\Resources\docker.iso
[04:53:45.903][VpnKit ][Error ] vpnkit.exe: Caught A socket operation encountered a dead network.

[04:53:45.903][VpnKit ][Info ] while creating Hyper-V socket

[04:53:45.903][VpnKit ][Error ] vpnkit.exe: Caught A socket operation encountered a dead network.

Hello @jeangan
Use Of This link configure hyper-v

i had configured it, service running. i noticed there is no VM in the H-V manager.
is that the cause?

Hello, @jeangan
docker service is started or not can you check it!

it was started.
but i hitting new issue when i tried to uninstalled docker, hyper-V mgmt.
now hyper-v cannot be installed.

anyway, i will check hyper-v instead. i guess it might due to the server is installed in VM without hyper-v.

Yes might be possible

After updating to the latest Docker and Win 10 Pro version, I had to restart the computer a few times as I received the “Unable to start Hyper-V” error when switching to Linux containers. After a few restarts, the Docker virtual machine in the Hyper-V manager became operational (was able to start it using the context menu) and I am able to switch between Windows and Linux containers.

I have also faced this same issue. I have solved it by removing all virtual machines. Following are its steps.

  • Open Hyper-V Manager
  • Select all MobyLinuxVM from Virtual Machines.
  • Right-click and delete all of these virtual machines.
  • Restart docker.

These steps have solved this issue on my system. Hope they help you too.

Regards,
Jerry.