docker: allow setting of the image and container from environment

(integrated from trunk branch change 6ecf591 by Todd Whiteman <toddw@activestate.com>)