记录一次Windows重启导致的docker报错
win11电脑,有个ARMOURY CRATE的软件更新,居然直接给我电脑重启了,后面他还没更新成功 我焯
结果就是docker报错了
1 | running engine: waiting for the VM setup to be ready: starting WSL engine: bootstrapping in the main distro: starting wsl-bootstrap: context canceled |
又重启docker软件和电脑升级docker desktop都没用 wsl确定有问题了
后面在docker desktop中的troubleshooting中Clean / Purge data清除了wsl重新安装wsl才可以
参考这个安装的wsl https://learn.microsoft.com/en-us/windows/wsl/install-manual
最后就是开梯子重新启动
1 | PS E:\mine\app\immich-app> docker-compose.exe up -d |
第二天开机docker报错
1 | running engine: waiting for the VM setup to be ready: starting WSL engine: bootstrapping in the main distro: running wsl-bootstrap: exit status 0xffffffff |
开终端wsl
指令报错
1 | The attempted operation is not supported for the type of object referenced. |
参考这个https://wangyj.medium.com/the-solution-to-wsl-error-the-attempted-operation-is-not-supported-for-the-type-of-object-aa559854d1e3 执行netsh winsock reset
解决了
1 | Windows PowerShell |
要永久解决下载NoLsp.exe工具到C:\Windows\system32 下载链接 http://www.proxifier.com/tmp/Test20200228/NoLsp.exe
然后执行 NoLsp.exe C:\Windows\system32\wsl.exe
1 | PS C:\Users\weimo> NoLsp.exe C:\Windows\system32\wsl.exe |
2025-02-11
电脑在某次开机wsl又不行了 还有弹窗报错读不到内存中的地址
我直接重装系统+wsl根治问题
目前docker运行良好
记录一次Windows重启导致的docker报错
https://miloweimo.github.io/article/记录一次Windows重启导致的docker报错/