Windows使用docker打开新窗口error解决办法
程序员文章站
2022-04-06 09:36:54
error during connect: get http://%2f%2f.%2fpipe%2fdocker_engine/v1.26/containers/j...
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 查看
总结
以上就是小编分享给大家的windows使用docker打开新窗口error解决办法,希望对大家有所帮助,感兴趣的朋友可以参阅:详解docker使用linux iptables 和 interfaces管理容器网络 、浅谈docker安全机制内核安全与容器之间的网络安全 等。希望朋友们对本站多多支持!