一、win10下载安装之后,报:
Unable to stop Hyper-V VM: 由于以下错误无法启动服务“Hyper-V 主机计算服务 (vmcompute)”: 无法启动计算机“.”上的服务 vmcompute。
现象:
①docker启动错误
②Hyper-V管理器中一片空白,没有本机物理机。
检查:Hyper-V已经打开、BIOS 中虚拟化也是打开的,baidu、bing上搜索了很久有类似的问题,但是都没有解决方案。
解决:最后无意中发现一篇博客提到windows安全中心设置导致hyper-v不可用。
原文地址: http://blog.sina.com.cn/s/blog_558e87580102zgxh.html
去除控制流保护(CFG)中替代系统设置前面的勾后,hyper-v管理器正常。容器成功启动。
二、docker ps报错
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/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.
PS C:\Windows\System32\WindowsPowerShell\v1.0>
解决方案:
cd "C:\Program Files\Docker\Docker"
./DockerCli.exe -SwitchDaemon
来源:oschina
链接:https://my.oschina.net/u/4423611/blog/3226583