Docker 使用 error during connect: This error may indicate that the docker daemon is not running

不管执行什么命令都提示下面错误

PS C:\Users\admin> docker ps
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: open //./pipe/docker_engine: The system cannot find the file specified.
PS C:\Users\admin> docker images
error during connect: This error may indicate that the docker daemon is not running.: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json: open //./pipe/docker_engine: The system cannot find the file specified.

根据网上提示

 cd "C:\Program Files\Docker\Docker"

然后在

 cd "C:\Program Files\Docker\Docker"

在切换过程中弹出

Docker 使用 error during connect: This error may indicate that the docker daemon is not running_第1张图片

解决报错

更加报错提示,猜测可能是我们使用的wsl2版本老了,需要我们自己手动更新一下,我们根据提示去微软官网下载最新版的wsl2安装后即可正常打开

下载地址

https://docs.microsoft.com/zh-cn/windows/wsl/install-win10#step-4---download-the-linux-kernel-update-package 

安装 完更新包,问题解决,使命可以正常使用

Docker 使用 error during connect: This error may indicate that the docker daemon is not running_第2张图片

 

你可能感兴趣的:(docker,docker)