Functional tests with vagrant in docker

To test some parts of code which require a fresh VM I use Vagrant. To automate testing I use python-vagrant package with which I automatically create and destroy VMs.

The problem is that I switched to Docker, so my app in now containerized and therefore I run tests inside a testing container. Even if I install Vagrant inside a container it complains that there is no VirtualBox around. Is there any possibility to solve this problem?

  • No value has been specified for property 'imageId' while creating container
  • Best practices for certificates in docker
  • Docker Host And Other Fundamental Questions
  • docker-compose where can I get a detail log (info) about what happened
  • how to activate/passivate docker containers in aws
  • Error mounting volumes on Openshift (Next gen)
  • Right now I created a Makefile function which spins up a VM runs a container executing tests and destroys VM at the end. But that does not allow me to perform VM rollbacks between tests and so on.

  • Unable to browse nodejs web app running docker container
  • Xdebug can't connect back to Docker host
  • How to do a custom deploy using ssh with Travis CI?
  • Why don't my udev rules work inside of a running docker container?
  • Way to increase Boot2Docker volume size or alternative to install docker images locally
  • Installing packages into ubuntu14.04 docker container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.