This is an example of how to use Test Driven Development with Docker containers. This example uses Serverspec and a Dockerfile.
This repo was used as an example in a blog post of mine: http://blog.danzil.io/2016/05/05/rspec-for-ops-test-driven-docker.html
A modern ruby
, bundler
, and docker
git clone https://github.com/danzilio/TDDocker
cd TDDocker/
bundle install
bundle exec rake spec