2017-03-14 70 views
0

我有一個centos機器/服務器,我想運行多個Docker容器的實例,他們在碼頭機中裝有帶有virtualbox驅動程序的碼頭機,用於測試目的。它甚至可以做到嗎?在碼頭服務器上的碼頭機

我有最新的centos7碼頭圖像。我然後運行

sudo docker run --privileged -ti test 

在碼頭集裝箱內我安裝了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. 

是否有人知道我怎麼能解決這個問題?我的virtualbox已經比5.0.12版更新。

回答

0

經過幾次卸載>重新安裝它開始工作...