windows10下安裝docker報錯:error during connect


詳細報錯信息如下:

C:\Users\zig>docker info
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.

修改方法:

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

原因:Especially on windows machine when you see the above error after a docker update, try the above commands. It appears like the Docker Desktop UI may indicate that you are already using Linux Containers, but the update may have messed up that setting. Running the above commands will set to Linux Containers and there after you can work happily.

大概意思就是默認使用的是Linux Containers,使用這個命令后改為Windows Containers就好了。(不知道翻譯的對不對,哈哈哈)

具體原因還沒有搞清楚,希望大神來補充呀


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM