docker-testinfra is a docker image, that helps testing other docker images via testinfra.
docker run --rm -t \
-v /path/to/your-docker-project:/project \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
aveltens/docker-testinfra
Take a look at this repo to see how the image is used, to test itself.
./build.sh
to build the image./test.sh
to test the image