错误信息
1
2
3
4
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/containers/json:
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.
解决方法
打开新窗口后执行
1
@FOR /f "tokens=*" %i IN ('docker-machine env default') DO @%i
default是docker-machine的name,可以通过docker-machine -ls
查看