Docker Desktop failed to start

Docker Desktop failed to start after installing wsl2 and reported the following error:


 Docker.ApiServices.WSL2.WslKernelUpdateNotInstalledException: 引发类型为“Docker.ApiServices.WSL2.WslKernelUpdateNotInstalledException”的异常。
 在 Docker.ApiServices.WSL2.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) 位置 C:\workspaces\PR-16070\src\github.com\docker\pinata\win\src\Docker.ApiServices\WSL2\WslCommand.cs:行号 140
 在 Docker.Engines.WSL2.WSL2Provisioning.<DeployDistroAsync>d__17.MoveNext() 位置 C:\workspaces\PR-16070\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:行号 169
 --- 引发异常的上一位置中堆栈跟踪的末尾 ---

Insert image description here

The reason is that the port used by wsl conflicts with the Proxifier proxy port
. Solution:

  1. Reset the windows winsock directory, not recommended, conflicts will still occur after restarting.
    Execute in cmd
netsh winsock reset
  1. Executing wsl using NoLsp.exe tells windows not to load the LSP dll into wsl.exe's process.
    If the Winsock LSP DLL is loaded into its process, wsl.exe will show this error. The object type is not supported. The attempted operation
    is from this Git address. , after downloading NoLsp.exe
    , put NoLsp in the windows/system32 directory, and run cmd as an administrator to execute it.
NoLsp.exe C:\windows\system32\wsl.exe

Guess you like

Origin blog.csdn.net/Helloantoherday/article/details/125849208