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

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