{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/1241","labels_url":"https://api.github.com/repos/docker/machine/issues/1241/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/1241/comments","events_url":"https://api.github.com/repos/docker/machine/issues/1241/events","html_url":"https://github.com/docker/machine/issues/1241","id":81301878,"number":1241,"title":"Give arguments like -e to machine for swarm containers (proxy environment)","user":{"login":"pacaletx","id":12526806,"avatar_url":"https://avatars.githubusercontent.com/u/12526806?v=3","gravatar_id":"","url":"https://api.github.com/users/pacaletx","html_url":"https://github.com/pacaletx","followers_url":"https://api.github.com/users/pacaletx/followers","following_url":"https://api.github.com/users/pacaletx/following{/other_user}","gists_url":"https://api.github.com/users/pacaletx/gists{/gist_id}","starred_url":"https://api.github.com/users/pacaletx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pacaletx/subscriptions","organizations_url":"https://api.github.com/users/pacaletx/orgs","repos_url":"https://api.github.com/users/pacaletx/repos","events_url":"https://api.github.com/users/pacaletx/events{/privacy}","received_events_url":"https://api.github.com/users/pacaletx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/machine/labels/area/swarm","name":"area/swarm","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-05-27T06:24:19Z","updated_at":"2015-08-26T19:07:18Z","closed_at":null,"body":"Hi,\r\n\r\nI didn't find an issue about that, and it's my first post, sorry if it's already exists or if the issue is not \"right\".\r\n\r\nProblem: \r\n\r\nMy problem is I start VM's using docker-machine in proxy environment, so my containers need some http_proxy to work.\r\nWhen i start my containers, i put these variables, but if I want to use docker-machine --swarm, my swarm containers won't have these variables, so for example I can't use the token discovery system (cause they won't have internet).\r\n\r\nSolution:\r\n\r\nFor example it could exist an option for docker-machine to specify swarm containers options: docker-machine create ... --swarm --swarm-parameters -e http_proxy=myproxy\r\n\r\nWill start swarm agent with the -e variable.\r\n\r\nThanks for helping/advices."},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/135142241","html_url":"https://github.com/docker/machine/issues/1241#issuecomment-135142241","issue_url":"https://api.github.com/repos/docker/machine/issues/1241","id":135142241,"user":{"login":"danmerino","id":334545,"avatar_url":"https://avatars.githubusercontent.com/u/334545?v=3","gravatar_id":"","url":"https://api.github.com/users/danmerino","html_url":"https://github.com/danmerino","followers_url":"https://api.github.com/users/danmerino/followers","following_url":"https://api.github.com/users/danmerino/following{/other_user}","gists_url":"https://api.github.com/users/danmerino/gists{/gist_id}","starred_url":"https://api.github.com/users/danmerino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmerino/subscriptions","organizations_url":"https://api.github.com/users/danmerino/orgs","repos_url":"https://api.github.com/users/danmerino/repos","events_url":"https://api.github.com/users/danmerino/events{/privacy}","received_events_url":"https://api.github.com/users/danmerino/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T19:07:18Z","updated_at":"2015-08-26T19:07:18Z","body":"I also would like to be able to give swarm environmental variables.\r\n\r\nFor example: https://github.com/gliderlabs/logspout allows ignoring logging from individual containers based on environmental variables. I do not want the swarm logs to pushed up.\r\n"}}