【已解决】报错:Docker Desktop - Unexpected WSL error

报错内容

Docker Desktop - Unexpected WSL error
An unexpected error occurred while executing a WSL command.

Either shut down WSL down with wsl --shutdown, and/or reboot your machine. You can also try reinstalling WSL and/or Docker Desktop. If the issue persists, collect diagnostics and submit an issue ⁠.

bootstrapping in the main distro: listing WSL distros: running WSL command wsl.exe C:\Windows\System32\wsl.exe -l -v --all: context deadline exceeded

解决方案

以管理员身份运行CMD,输入netsh winsock reset,然后重新打开Docker Desktop即可。

posted @ 2024-12-13 23:24  hank-li  阅读(289)  评论(0编辑  收藏  举报