docker: getting hosts from environ.