我对docker完全不熟悉。我是从Source安装的。我正在尝试使用boot2docker start从cmd运行它。但我得到了以下结论
boot2docker start
Failed to start machine boot2docker-vm <run again with v for details>
boot2docker init
virtual machine boot2docker-vm already exists
boot2docker start
Failed to start machine boot2docker-vm exit status:1所以,对于你们来说,这将是一个简单的问题。该怎么办呢。我试过SO了。但是我不能理解解决方案,所以我没能实现它。请提供一些建议
编辑:我希望它能对你有所帮助。在bios中禁用了一些东西。
boot2docker -v start
Boot2Docker-cli version: v1.4.1
Git commit: 43241cb
2014/12/18 16:12:35 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
showvminfo boot2docker-vm --machinereadable
2014/12/18 16:12:35 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountPrefix
/
2014/12/18 16:12:36 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountDir /
2014/12/18 16:12:36 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
sharedfolder add boot2docker-vm --name c/Users --hostpath C:\Users --automount
VBoxManage.exe: error: Shared folder named 'c/Users' already exists
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_IN_USE (0x80bb000c), componen
t SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "CreateSharedFolder(Bstr(name).raw(), Bstr(hostp
ath).raw(), fWritable, fAutoMount)" at line 1009 of file VBoxManageMisc.cpp
2014/12/18 16:12:36 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
setextradata boot2docker-vm VBoxInternal2/SharedFoldersEnableSymlinksCreate/ c/U
sers 1
2014/12/18 16:12:36 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
startvm boot2docker-vm --type headless
Waiting for VM "boot2docker-vm" to power on...
VBoxManage.exe: error: **VT-x is disabled in the BIOS.** (VERR_VMX_MSR_VMXON_DISABLE
D)
VBoxManage.exe: error: D**etails: code E_FAIL (0x80004005)**, component Console, int
erface IConsole
2014/12/18 16:12:38 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
showvminfo boot2docker-vm --machinereadable
error in run: Failed to start machine "boot2docker-vm": exit status 1发布于 2015-03-11 04:48:16
原因:
您需要在错误日志中注意的信息金块是
Waiting for VM "boot2docker-vm" to power on...
VBoxManage.exe: error: **VT-x is disabled in the BIOS.**(VERR_VMX_MSR_VMXON_DISABLE
D)这意味着您当前工作站的BIOS设置阻止了CPU上另一个操作系统的虚拟化。Docker在您的机器上运行虚拟linux操作系统,所以这就是问题所在。
对于英特尔芯片,虚拟化特性通常称为VT-x或类似的东西。对于AMD芯片,虚拟化功能称为AMD-V。我使用的是像您这样的英特尔芯片,所以这个解决方案适用于英特尔芯片。
解决方案:
关闭电源,进入BIOS并启用VT-x。在我的基本输入输出系统中,一个联想的Thinkpad T440,需要更改的设置是在安全->虚拟化下。
打开电源并返回到C:/path/to/Boot2Docker for Windows文件夹。
运行boot2docker delete以确保没有VM在运行。
运行boot2docker init以初始化VM。
运行boot2docker start创建一个新的Docker虚拟机!
要访问Docker VM,请运行boot2docker ssh,因为Docker客户端从1.5.0版开始不能在Windows上运行。
https://stackoverflow.com/questions/27544622
复制相似问题