在Windows 10上,当我调用docker命令时:

docker pull mongo:windowsservercore


Warning: failed to get default registry endpoint from daemon (error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/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.). Using system default:

当我docker-machine create default

(default) Waiting for an IP... Error creating machine: Error in driver during machine creation: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

您可能使用Docker for Windows OpenSource解决方案让Docker在Windows 10上运行。在这种情况下,原因是您的docker CLI无法在没有守护进程的情况下运行。 运行Docker守护进程(您可能在桌面上有一个图标),一旦报告它已经准备就绪,请重试您的命令。