Windows系统安装Docker遇到error during connect: In the default daemon configuration on Windows, the docker

Windows系统安装Docker遇到
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.

解决方案一:打开cmd命令行,执行如下命令--测试可行
cd "C:\Program Files\Docker\Docker"
DockerCli.exe -SwitchDaemon
重启一下Docker

解决方案二:
在Docker客户端设置里面General里面将 Use Docker Compose V2勾上即可,重启Docker

THE END