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?

  • docker global service and replicated service performance
  • Unix protocol not supported - Docker Plugin Version - 0.16.2
  • Auto-restarting Docker container on Google Compute Engine
  • How to start multiple containers that use tcp with Docker
  • flask application running on Kubernete Pods doesn't respect port in configuration
  • Docker: how to execute a batch file when container starts and keep the user in cmd / session
  • 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.

  • Testing ASP.NET Core Docker Container with Travis CI
  • create volume in docker and use it in a container
  • Copying a directory into a docker image while skipping given sub directories
  • “Value cannot be null. Parameter name: userName” error when installing MSSQL 2014 Express in Docker
  • docker-compose psql could not connect to server
  • initctl too old upstart check
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.