{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/runc/issues/200","labels_url":"https://api.github.com/repos/opencontainers/runc/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/runc/issues/200/comments","events_url":"https://api.github.com/repos/opencontainers/runc/issues/200/events","html_url":"https://github.com/opencontainers/runc/issues/200","id":101048090,"number":200,"title":"Pulling environment variables at runtime?","user":{"login":"stuartpb","id":572196,"avatar_url":"https://avatars.githubusercontent.com/u/572196?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartpb","html_url":"https://github.com/stuartpb","followers_url":"https://api.github.com/users/stuartpb/followers","following_url":"https://api.github.com/users/stuartpb/following{/other_user}","gists_url":"https://api.github.com/users/stuartpb/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartpb/subscriptions","organizations_url":"https://api.github.com/users/stuartpb/orgs","repos_url":"https://api.github.com/users/stuartpb/repos","events_url":"https://api.github.com/users/stuartpb/events{/privacy}","received_events_url":"https://api.github.com/users/stuartpb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-14T16:31:29Z","updated_at":"2015-08-14T23:06:54Z","closed_at":null,"body":"I see the specification states that environment variables can be specified in `container.json`. Is there a way to have `runc` pass along inherited environment variables from the execution context (as is needed to associate services provided in the fashion of Heroku 12-Factor Apps)?"},"comment":{"url":"https://api.github.com/repos/opencontainers/runc/issues/comments/131264863","html_url":"https://github.com/opencontainers/runc/issues/200#issuecomment-131264863","issue_url":"https://api.github.com/repos/opencontainers/runc/issues/200","id":131264863,"user":{"login":"stuartpb","id":572196,"avatar_url":"https://avatars.githubusercontent.com/u/572196?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartpb","html_url":"https://github.com/stuartpb","followers_url":"https://api.github.com/users/stuartpb/followers","following_url":"https://api.github.com/users/stuartpb/following{/other_user}","gists_url":"https://api.github.com/users/stuartpb/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartpb/subscriptions","organizations_url":"https://api.github.com/users/stuartpb/orgs","repos_url":"https://api.github.com/users/stuartpb/repos","events_url":"https://api.github.com/users/stuartpb/events{/privacy}","received_events_url":"https://api.github.com/users/stuartpb/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T23:06:54Z","updated_at":"2015-08-14T23:06:54Z","body":"> using envsubst\r\n\r\nActually, envsubst is a really bad solution for this kind of thing, most importantly because it has no escape character. I wrote a Perl one-liner [here](http://stackoverflow.com/a/25019138/34799) that is better suited to this kind of operation."}}