host: Support docker image ENV.

Fixes #428. Intending to add a test before merging.