Injecting docker environment variables into C# code

Is there easy way to read docker env variables, set in docker run command, in C# code? Or I have to write scirpt which will inject those variables in for example App config file and then read them from this file?

EDIT: I have app running on docker and during docker run command I want to set env variables which I want to use in method in my code. Is it possible to do that?

submitted by /u/ms_heisenbug
[link] [comments]
Source: Reddit