test case for preserving env in exec session

Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh)
Merge pull request #9174 from dqminh/docker-exec-env

Set correct env variables for `docker exec` commands