win10 cmd下输入docker version报错error during connect

在cmd命令窗口下输入docker version报错:

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/info: 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.

解决方法:

powershell下,输入:

cd "C:\Program Files\Docker\Docker"
./DockerCli.exe -SwitchDaemon

参考自github:https://github.com/docker/for-win/issues/1825

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章