0
点赞
收藏
分享

微信扫一扫

Docker安装报错Hardware assisted virtualization and data execution protection must be enabled in the BIOS

爱情锦囊 2022-02-28 阅读 60

 错误信息

解决方法
控制面板->程序->启用或关闭 windows 功能,开启 Windows 虚拟化和 Linux 子系统(WSL2)

命令行安装 Linux 子系统(这步可能不需要,因为 docker 安装时有说自动安装 wsl)
wsl --install -d Ubuntu

设置开机启动 Hypervisor
bcdedit /set hypervisorlaunchtype auto

确保 BIOS 已开启虚拟化,下图检查是否已开启好

出现下图错误,点击链接安装最新版本的 WSL2
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

镜像加速器镜像加速器地址
Docker 中国官方镜像https://registry.docker-cn.com
DaoCloud 镜像站http://f1361db2.m.daocloud.io
Azure 中国镜像https://dockerhub.azk8s.cn
科大镜像站https://docker.mirrors.ustc.edu.cn
阿里云https://<your_code>.mirror.aliyuncs.com
七牛云https://reg-mirror.qiniu.com
网易云https://hub-mirror.c.163.com
腾讯云https://mirror.ccs.tencentyun.com

举报

相关推荐

0 条评论