This is an older (circa 2014) but excellent post from the creator of cockroachdb on how they are using CircleCI and Docker together.
It contains a neat workaround for caching docker images, and an awesome sample circle.yml file that you can use in your own projects.
Thanks so much to Tobias.