安装docker地址:
https://docs.docker.com/desktop/install/windows-install/
安装后运行两个报错:
1.wsl 直接下载更新 该win库即可:
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
2.报错
Hardware assisted virtualization and data execution protection must be enabled in the BIOS. See—
必须在BIOS中启用硬件辅助虚拟化和数据执行保护。看见
在 bios 里面设置即可
解决完后就可以正常运行:
首先更改 docker 镜像地址(外网更新慢)
我的镜像配置:
{
“debug”: true,
“experimental”: false,
“insecure-registries”: [],
“registry-mirrors”: [
“http://hub-mirror.c.163.com”,
“https://docker.mirrors.ustc.edu.cn”
]
}
然后可以在 win 的 Powershell 里面运行 docker 命令。