docker: added env params in newContainer.

related to #671.