Add support to run as a docker image.

Tested with Hawkeye in a docker image. Still need to go through OCD to ensure no regressions.