Windows使用docker打开新窗口error解决办法

环境 win7

Error:

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.

解决方法:

  @FOR /f "tokens=*" %i IN ('docker-machine env default') DO @%i

default 是docker-machine的name,可以通过docker-machine -ls 查看

posted @ 2019-02-19 15:24  Bean_Wei  阅读(1631)  评论(0编辑  收藏  举报