在Docker容器中运行Vagrant

我正在寻找一种方式来在docker集装箱内运行stream浪汉。 我尝试过使用Ubuntu的基础容器,但在做stream浪汉的时候遇到了一些问题,失败了。

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]#