详情请参考:.net core的一种兼容Docker,k8s,Linux及Window的获取环境变量的方式http://config.net.cn/teamproject/pms/e3dd3ead-1910-4143-9efa-b894cec96c39-p1.html