{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10379","labels_url":"https://api.github.com/repos/docker/docker/issues/10379/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10379/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10379/events","html_url":"https://github.com/docker/docker/issues/10379","id":55599903,"number":10379,"title":"How to set env without Dockerfile","user":{"login":"WuLonghui","id":5194128,"avatar_url":"https://avatars.githubusercontent.com/u/5194128?v=3","gravatar_id":"","url":"https://api.github.com/users/WuLonghui","html_url":"https://github.com/WuLonghui","followers_url":"https://api.github.com/users/WuLonghui/followers","following_url":"https://api.github.com/users/WuLonghui/following{/other_user}","gists_url":"https://api.github.com/users/WuLonghui/gists{/gist_id}","starred_url":"https://api.github.com/users/WuLonghui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WuLonghui/subscriptions","organizations_url":"https://api.github.com/users/WuLonghui/orgs","repos_url":"https://api.github.com/users/WuLonghui/repos","events_url":"https://api.github.com/users/WuLonghui/events{/privacy}","received_events_url":"https://api.github.com/users/WuLonghui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-27T10:25:30Z","updated_at":"2015-01-27T11:30:26Z","closed_at":null,"body":"Hi,\r\nWant to create a image by `docker commit`, but how to set env in the image, I only find Dockerfile can do it, any oher way?\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/71632274","html_url":"https://github.com/docker/docker/issues/10379#issuecomment-71632274","issue_url":"https://api.github.com/repos/docker/docker/issues/10379","id":71632274,"user":{"login":"stefan-it","id":6200857,"avatar_url":"https://avatars.githubusercontent.com/u/6200857?v=3","gravatar_id":"","url":"https://api.github.com/users/stefan-it","html_url":"https://github.com/stefan-it","followers_url":"https://api.github.com/users/stefan-it/followers","following_url":"https://api.github.com/users/stefan-it/following{/other_user}","gists_url":"https://api.github.com/users/stefan-it/gists{/gist_id}","starred_url":"https://api.github.com/users/stefan-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefan-it/subscriptions","organizations_url":"https://api.github.com/users/stefan-it/orgs","repos_url":"https://api.github.com/users/stefan-it/repos","events_url":"https://api.github.com/users/stefan-it/events{/privacy}","received_events_url":"https://api.github.com/users/stefan-it/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T11:30:25Z","updated_at":"2015-01-27T11:30:25Z","body":"Hi,\r\n\r\nyou can use the `-e` switch in the `docker run` command to specify one or multiple environment variables (in the container), see [this](https://docs.docker.com/reference/run/#env-environment-variables) reference for more information :)\r\n\r\nStefan"}}