Environment variable is not promoting to IIS process

I am using Docker For Windows ver: 18.06.1. and microsoft/iis image.

I have a Web application hosted on Docker container. I want to setup an Environment variable from ‘docker run -e’, because the value of this variable will be different for every new container.

After running the container, when I check environment variable from “docker exec cmd”, I can see the variable listed. but while accessing from my ASP.NET MVC app, I am not able to read it.

Possible reason might be, servicemonitor.exe is not promoting the environment variable to w3wp process, as discussed in : https://github.com/Microsoft/iis-docker/issues/2

Can someone help me to get this resolved?