I wrote a small utility that wraps commands in Docker: https://github.com/skorokithakis/dox