Test driven development is common sense, test driven infrastructure not. Using serverspec and related tools, it becomes really ease to test a docker setup, starting from the host, dockerd, its images and containers, and the container contents itself. References : http://www.infrabricks.de/blog/2015/04/16/docker-container-mit-serverspetesten-teil-2/ https://github.com/de-wiring/containerspec