1.An unexpected error was encountered

An unexpected error was encountered while executing a WSLcommand. Common causes include access rights issues, which occurafter waking the computer or not being connected to your domain/active directory. Please try shutting WSL down (wsl --shutdown) and/or rebooting yourcomputer. If not sufficient, WSL may need to be reinstalled fully. As alast resort, try to uninstall/reinstall Docker Desktop. lf the issue persistsplease collect diagnostics and submit an issue (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-theterminal). Error details:2 errors occurred:

----解决办法:

netsh winsock reset

每次开机以管理员方式自动执行一次该命令

如果正常,就可以使用docker了,如果还是报错就重启下pc.

 

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐