docker报error during connect

1,264 阅读1分钟

这种错误只在windows系统上才有,完整的错误信息如下:

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/containers/json": open //./pipe/docker_engine: The system cannot find the file specified.

原因是没有启动 Docker Desktop

在“开始”或者桌面上,启动下这个软件就可以了。