Public | Automated Build

Last pushed: 2 years ago
Short Description
Virtualbox and Vagrant in a docker container
Full Description

VirtualBox Inside Docker

This projet should allow any user to successfully install VirtualBox inside a docker container allowing you to intall any OS virtually inside a virtual containers! Sounds cool right?


To use this image, you must install and load the Virtualbox driver on the
host, and mount /dev/vboxdrv to the container.


docker run -v /dev/vboxdrv:/dev/vboxdrv --name=vbox vboxinsidedocker
Docker Pull Command
Source Repository

Comments (1)
2 years ago

Is it working for you? I'm running on Ubuntu Linux and it's not. I've shared X11 to execute the grafic interface

docker run -it --rm --net=host \
-v /dev/vboxdrv:/dev/vboxdrv \
-v $HOME/.Xauthority:/root/.Xauthority \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--name=vbox \
esben/vboxinsidedocker /bin/bash

But when I run virtualbox it says "Failed to open a session for the virtual machine... Kernel driver not accessible... run '/etc/init.d/vboxdrv setup' as root"