无法创建 docker 个虚拟机

Unable to create docker virtual machine

我之前使用的是 boot2docker,一切正常。现在,当我升级到使用 Docker Toolbox 时,我无法创建新的虚拟机。

我什至无法导入与 boot2docker 一起使用的虚拟机。

我在尝试创建新机器时遇到此错误:

C:\Program Files\Docker Toolbox\kitematic\resources\resources\docker-machine.exe -D create -d virtualbox --virtualbox-memory 2048 default returned non zero exit code. Stderr: Converting from raw image file="stdin" to file="C:\Users\disk.vmdk"... Creating dynamic image with size 20971520000 bytes (20000MB)... Error creating machine: exit status 1 You will want to check the provider to make sure the machine and associated resources were properly removed.

我在尝试导入 boot2docker 使用的旧虚拟机时得到了这个:'

C:\Users\pmandayam>docker-machine create -d virtualbox --virtualbox-import-boot2 
docker-vm boot2docker-vm docker-vm 
Creating VirtualBox VM... 
Error creating machine: exit status 1 
You will want to check the provider to make sure the machine and associated reso 
urces were properly removed.

非常感谢您的帮助。

谢谢,

普里特维

我通过重新安装 Docker 工具箱解决了这个问题,确保安装了 Oracle VM VirtualBox 的所有组件。

我认为你没有安装内核驱动程序。 你可以 运行 这个:

yum -y install kmod-VirtualBox-$(uname -r) kmod-VirtualBox

yum -y install akmod-VirtualBox kernel-devel-$(uname -r) akmods

systemctl restart systemd-modules-load.service

并且你应该确保你的防火墙已经停止。

安装 Virtual Box 的最新测试版本解决了我的问题!

https://www.virtualbox.org/wiki/Testbuilds

正确答案实际上是

docker-machine rm DOCKERHOST

其中 DOCKERHOST 是机器名称(例如上面原始 post 中的 boot2docker-vm)。