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?

  • Is it possible to access the entry command bash on a running docker container?
  • error while setting file capabilities in Docker
  • Docker container for development
  • How to connect to remote Spark cluster from python in docker
  • Understanding Docker container resource usage
  • Java Development in Dockerized environment: Debugging And hot code reload
  • 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.

  • Easiest way to deploy docker application
  • How to build Docker Image with Fake
  • Running OpenSSH in an Alpine Docker Container
  • Couldn't connect to the Docker daemon due to an SSL
  • Docker can't connect to the internet from with proxy
  • What is the available information about the files and folder inside the docker container?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.