在Docker容器中运行Vagrant

时间:2017-07-12 11:47:28

标签: docker vagrant

我正在寻找一种在docker容器内运行vagrant的方法。我尝试使用ubuntu基本容器,但在做流浪汉时遇到了一些问题,但它失败了。

root@991baf290ddc:/srv# vagrant up VirtualBox is complaining that the installation is incomplete. Please run VBoxManage --version to see the error message which should contain instructions on how to fix this error.

root@991baf290ddc:/srv# VBoxManage --version WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-. You will not be able to start VMs until this problem is fixed. 5.0.40_Ubuntur115130

我尝试安装virtualbox-dkms包,但没有帮助。

Deleting module version: 5.0.40 completely from the DKMS tree. Done. Loading new virtualbox-5.0.40 DKMS files... dpkg: warning: version '*-*' has bad syntax: version number does not start with digit dpkg: warning: version '3.10.0-514.16.1.el7.x86_64' has bad syntax: invalid character in revision number It is likely that 3.10.0-514.16.1.el7.x86_64 belongs to a chroot's host Building only for * Building initial module for * : using /lib/modules/4.4.0-83-generic/build/.config (I hope this is the correct config for this kernel) Done.

Error! The directory /lib/modules/* doesn't exist. You cannot install a module onto a non-existant kernel. The command '/bin/sh -c dpkg-reconfigure virtualbox-dkms' returned a non-zero code: 6 [root@test-docker vagrant-in-docker]#

0 个答案:

没有答案