Mac使用Parallels Desktop14虚拟机win10安装Docker,开启VT-X/AMD-v

window下载Docker地址:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/

使用Parallels Desktop虚拟机WIN10安装完成Docker后,提示需要开启VT-X/AMD-v

Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"

解释方法

1.在win10关闭状态下,配置--硬件--CPU与内存--高级设置--勾选启动nested虚拟化/PMU虚拟化
Mac使用Parallels Desktop14虚拟机win10安装Docker,开启VT-X/AMD-v_第1张图片

2.重新打开Docker Quickstart Terminal后,发现还是运行不了,缺少boot2docker,但有提示重新下载,可手动下载后,替换到提示地址(C:UsersAsen.dockermachinecacheboot2docker.iso)

Running pre-create checks...
(default) Image cache directory does not exist, creating it at C:\Users\Asen\.docker\machine\cache...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
(default) Latest release for github.com/boot2docker/boot2docker is v19.03.12
(default) Downloading C:\Users\Asen\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso...

下载地址:https://github.com/boot2docke...
Mac使用Parallels Desktop14虚拟机win10安装Docker,开启VT-X/AMD-v_第2张图片

最后安装成功

Mac使用Parallels Desktop14虚拟机win10安装Docker,开启VT-X/AMD-v_第3张图片

【注意】

双击Docker Quickstart Terminal时,提示错误:

Starting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
Error setting up host only network on machine start: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm default --nic2 hostonly --nictype2 82540EM --nicpromisc2 deny --hostonlyadapter2 VirtualBox Host-Only Ethernet Adapter #2 --cableconnected2 on failed:
VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp
Looks like something went wrong in step ´Checking status on default´... Press any key to continue...

Mac使用Parallels Desktop14虚拟机win10安装Docker,开启VT-X/AMD-v_第4张图片

解决方法:只需要打开Docker Quickstart Terminal时,只需要右击,使用以管理员身份运行即可

你可能感兴趣的:(docker)