码头工人在服务器上的码头工人

时间:2017-03-14 14:24:14

标签: docker virtual-machine virtualbox docker-machine

我有一台centos机器/服务器,我希望运行多个docker容器实例,并在其中安装带有虚拟机驱动程序的docker-machines用于测试目的。它甚至可行吗?

我有来自最新centos7的码头图片。然后我跑

sudo docker run --privileged -ti test

在docker容器中,我安装了docker,docker-machine和virtualbox。

docker-machine --version
docker-machine version 0.10.0

VBoxManage --version 
5.1.16r113841

docker --version
Docker version 17.03.0-ce

当我跑步时

docker-machine create --driver virtualbox default

我收到以下错误

(default) Creating a new host-only adapter produced an error: /usr/bin/VBoxManage hostonlyif create failed:
(default) 0%...
(default) Progress state: NS_ERROR_FAILURE
(default) VBoxManage: error: Failed to create the host-only adapter
(default) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(default) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(default) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 94 of file VBoxManageHostonly.cpp
(default)
(default) This is a known VirtualBox bug. Let's try to recover anyway...
Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.

有人知道如何解决这个问题吗?我的虚拟机已经比规定的5.0.12版本更新了。

1 个答案:

答案 0 :(得分:0)

经过几次卸载>重新安装后,它开始工作......