{"action":"opened","issue":{"url":"https://api.github.com/repos/rancherio/rancher/issues/1218","labels_url":"https://api.github.com/repos/rancherio/rancher/issues/1218/labels{/name}","comments_url":"https://api.github.com/repos/rancherio/rancher/issues/1218/comments","events_url":"https://api.github.com/repos/rancherio/rancher/issues/1218/events","html_url":"https://github.com/rancherio/rancher/issues/1218","id":88170052,"number":1218,"title":"Link environment variables do not show up for service links","user":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sangeethah","id":4266958,"avatar_url":"https://avatars.githubusercontent.com/u/4266958?v=3","gravatar_id":"","url":"https://api.github.com/users/sangeethah","html_url":"https://github.com/sangeethah","followers_url":"https://api.github.com/users/sangeethah/followers","following_url":"https://api.github.com/users/sangeethah/following{/other_user}","gists_url":"https://api.github.com/users/sangeethah/gists{/gist_id}","starred_url":"https://api.github.com/users/sangeethah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangeethah/subscriptions","organizations_url":"https://api.github.com/users/sangeethah/orgs","repos_url":"https://api.github.com/users/sangeethah/repos","events_url":"https://api.github.com/users/sangeethah/events{/privacy}","received_events_url":"https://api.github.com/users/sangeethah/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rancherio/rancher/milestones/25","html_url":"https://github.com/rancherio/rancher/milestones/Release%201.0%20Beta","labels_url":"https://api.github.com/repos/rancherio/rancher/milestones/25/labels","id":1134764,"number":25,"title":"Release 1.0 Beta","description":"","creator":{"login":"will-chan","id":10134676,"avatar_url":"https://avatars.githubusercontent.com/u/10134676?v=3","gravatar_id":"","url":"https://api.github.com/users/will-chan","html_url":"https://github.com/will-chan","followers_url":"https://api.github.com/users/will-chan/followers","following_url":"https://api.github.com/users/will-chan/following{/other_user}","gists_url":"https://api.github.com/users/will-chan/gists{/gist_id}","starred_url":"https://api.github.com/users/will-chan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-chan/subscriptions","organizations_url":"https://api.github.com/users/will-chan/orgs","repos_url":"https://api.github.com/users/will-chan/repos","events_url":"https://api.github.com/users/will-chan/events{/privacy}","received_events_url":"https://api.github.com/users/will-chan/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":183,"state":"open","created_at":"2015-05-26T21:14:50Z","updated_at":"2015-06-14T11:28:16Z","due_on":"2015-06-13T07:00:00Z","closed_at":null},"comments":0,"created_at":"2015-06-14T11:28:16Z","updated_at":"2015-06-14T11:28:16Z","closed_at":null,"body":"When you link a service you should now get environment variable that are compatible with Docker links environment variables:\r\n\r\n```\r\nMYSQL_PORT=tcp://172.17.2.48:3306\r\nMYSQL_PORT_3306_TCP=tcp://172.17.2.48:3306\r\nMYSQL_PORT_3306_TCP_ADDR=172.17.2.48\r\nMYSQL_PORT_3306_TCP_PORT=3306\r\nMYSQL_PORT_3306_TCP_PROTO=tcp\r\n```\r\n\r\nAdditionally the target containers environment variables should be copied to the environment of consuming container in the following fashion:\r\n\r\n```\r\nMYSQL_PORT=tcp://172.17.2.48:3306\r\nMYSQL_PORT_3306_TCP=tcp://172.17.2.48:3306\r\nMYSQL_PORT_3306_TCP_ADDR=172.17.2.48\r\nMYSQL_PORT_3306_TCP_PORT=3306\r\nMYSQL_PORT_3306_TCP_PROTO=tcp\r\n```\r\n\r\nMore info on the environment variables: https://docs.docker.com/userguide/dockerlinks/"}}