在Docker集装箱内运行流浪者

在Docker集装箱内运行流浪者,docker,vagrant,Docker,Vagrant,我正在寻找一种在docker集装箱内运行流浪者的方法。我尝试使用Ubuntu基本容器,但在执行vagrant up时遇到了一些问题,失败了 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 inst

我正在寻找一种在docker集装箱内运行流浪者的方法。我尝试使用Ubuntu基本容器,但在执行vagrant up时遇到了一些问题,失败了

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.
我尝试安装
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.

您是否安装了
linux headers generic
?是但没有帮助我是否需要像
ENTRYPOINT
这样的东西?您可能希望以特权模式运行容器,使其支持vagrant或以某种方式进一步嵌套。
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]#