@Kiview talk at GreachConf 2017 where he talks about running Integration tests with Spock and Docker. By integration test he refers to:
A test which interacts with external system / dependencies
He introduces TestContainers
TestContainers is a Java 8 library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container
and specially TestContainers Spock; a Spock extension for using Docker containers in Spock tests.
Really cool the demo where he runs a Chrome browser inside docker container to run Geb tests.
This links gets you to the slides of @codingandrey's workshop Dockerized Java Workshop at GR8Conf EU.
The first part of the slide deck, is a great docker introduction on its own. The second part is a set of exercises to dip your toe into Docker waters. At the end a set of links to books if you have a Docker appetite.