我的电脑因启动docker报错
$ docker-compose up -d
error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%3Ddatasourceofficialwebsite%22%3Atrue%7D%7D": open //./pipe/docker_engine: The system cannot find the file specified.
启动docker desktop时 wsl/wsl2出现"占位程序接收到错误数据"
1:解决办法:管理员身份启动cmd/powershell运行,再重启电脑错误就消失了
netsh winsock reset
2:可以使用nolsp,下载完毕nolsp后 将nolsp程序放置c盘,然后继续使用管理员身份启动cmd/powershell,
注意:因为我的nolsp.exe文件是放置在c盘的根目录,所以用的一下命令。可以使用 cd 切换至你存放nolsp.exe的目录再执行一下程序
nolsp.exe C:\WINDOWS\system32\wsl.exe
当出现success的提示就成功了
重启电脑后再启动docker就解决了