我的電腦因啟動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出現(xiàn)"占位程序接收到錯誤數(shù)據(jù)"
1:解決辦法:管理員身份啟動cmd/powershell運行,再重啟電腦錯誤就消失了
netsh winsock reset
2:可以使用nolsp,下載完畢nolsp后 將nolsp程序放置c盤,然后繼續(xù)使用管理員身份啟動cmd/powershell,
注意:因為我的nolsp.exe文件是放置在c盤的根目錄,所以用的一下命令。可以使用 cd 切換至你存放nolsp.exe的目錄再執(zhí)行一下程序
nolsp.exe C:\WINDOWS\system32\wsl.exe
當出現(xiàn)success的提示就成功了
文章來源:http://www.zghlxwxcb.cn/news/detail-843848.html
重啟電腦后再啟動docker就解決了文章來源地址http://www.zghlxwxcb.cn/news/detail-843848.html
到了這里,關于解決wsl、docker desktop無法啟動的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!