win10下安装Docker

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xuaba/article/details/89671122

安装环境

win10 家庭版

遇到的问题

  1. win10家庭版没有Hyper-V,在网上查到了安装Hyper-V的方式,也安装成功了,但是重启后并没有生效。所以决定利用 docker toolbox 来安装。

  2. Docker for Windows是依赖 Hyper-v 的,但是Docker Toolbox是用VirtualBox的,我在上一步的时候已经安装了Hyper-v,还是之前Windows10家庭版的功能中没有Hyper-V的解决方法 文中发的方法添加的Hyper-v

  在Windows功能中关闭居然没生效,重启过的,安装Docker Toolbox倒是没有什么大问题。

  但是在启动docker时,报出以下错误:

Running pre-create checks...
Error with pre-create check: "This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)"
Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue...

解决办法
  这个我的解决方式是直接把Hyepr-v禁用,管理员模式运行 CMD:

//To disable:
bcdedit /set hypervisorlaunchtype off

//To enable:
bcdedit /set hypervisorlaunchtype auto 

问题解决。

  注:根据报错信息对…\Docker Toolbox\start.sh文件进行更改(网上找到的其他解决办法)后,并没有生效。

https://cloud.tencent.com/developer/article/1355198
参考资料“在Windows10安装Docker遇到问题的解决方法“

猜你喜欢

转载自blog.csdn.net/xuaba/article/details/89671122