1.背景
本文记录一下在手动点击Docker Desktop软件时报错,错误信息为Docker failed to initialize Docker& Desktop is shutting down。
2.解决步骤
2.1.检查docker版本信息
打开powershell运行docker version
发现镜像信息都依旧还存在,那可能是初始化问题。
2.2.检查镜像信息
error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json": open //./pipe/docker_engine: The system cannot find the file specified.
2.3.尝试解决
方案一:
注:先不要着急卸载重装。
打开路径C:\Users\username\AppData\Roaming,找到Docker文件夹,将其重新命名为Dcoekr_Backup的名称。(这样做相当于将信息进行备份)再次点击Docker Desktop可以正常运行。在检查镜像信息,发现镜像还在。
方案二:直接重启电脑,也可以解决此问题。
大功告成。