Docker容器部署运维互联网技术IT交流圈

Docker for Windows

2019-01-21  本文已影响2人  Solomon_Xie

用了两三天才把Docker在Windows上搞定。
首先:必须要Windows10最新版(2018以上)才行。最好不要用网上Ghost版本的镜像,因为即使是最新编的镜像也是用的老版本win10,更新时间还是花了我12小时以上还没更新完。索性直接到官网下载正式安装版。

参考:Get started with Docker for Windows
参考:Logs and troubleshooting

提示错误:Hardware assisted virtualization and data execution protection must be enabled in the BIOS

参考:Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”

imageimage

用管理员权限打开Powershell,输入命令:

# 开启Hyper-V
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
bcdedit /set hypervisorlaunchtype auto

重启。

如果还没用,就到控制面板WIndows功能里,取消HypyerV等,重启。然后再选中,然后再重新安装,再重启。

如果再再没用,那就是时候考虑放弃了(电脑太老了可能),然后使用Virtualbox方案——安装Docker toolbox。

上一篇 下一篇

猜你喜欢

热点阅读