详细报错信息以下:docker
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.
修改方法:windows
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.app
大概意思就是默认使用的是Linux Containers,使用这个命令后改成Windows Containers就行了。(不知道翻译的对不对,哈哈哈)spa
具体缘由尚未搞清楚,但愿大神来补充呀翻译