error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/images/json:
简介
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/images/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows
问题
Win10在运行 docker
命令的时候报如下错误:
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/images/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
解决方案
点击工具栏docker desktop的小图标上右键,然后 Setting—> General—>勾选Expose daemon on tcp localhost那个选项。重启