{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/24877","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/24877/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/24877/comments","events_url":"https://api.github.com/repos/docker/docker/issues/24877/events","html_url":"https://github.com/docker/docker/issues/24877","id":166723269,"number":24877,"title":"Allow setting hostname in docker service create/update","user":{"login":"mcassaniti","id":10560930,"avatar_url":"https://avatars.githubusercontent.com/u/10560930?v=3","gravatar_id":"","url":"https://api.github.com/users/mcassaniti","html_url":"https://github.com/mcassaniti","followers_url":"https://api.github.com/users/mcassaniti/followers","following_url":"https://api.github.com/users/mcassaniti/following{/other_user}","gists_url":"https://api.github.com/users/mcassaniti/gists{/gist_id}","starred_url":"https://api.github.com/users/mcassaniti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcassaniti/subscriptions","organizations_url":"https://api.github.com/users/mcassaniti/orgs","repos_url":"https://api.github.com/users/mcassaniti/repos","events_url":"https://api.github.com/users/mcassaniti/events{/privacy}","received_events_url":"https://api.github.com/users/mcassaniti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-21T02:23:44Z","updated_at":"2016-07-28T19:47:37Z","closed_at":null,"body":"If some variable substitution can be done within the service create and service update commands, it would be ideal to build the hostname for a container from such variable substitutions. For instance, if the service name is represented as %s and the task ID is represented as %i, a hostname could be build as %s-%i.\r\n\r\nExample: Service name is smtp, and there are three tasks (1,2,3). The hostname could then be set as smtp-1, smtp-2, smtp-3 depending on the task ID."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/236004501","html_url":"https://github.com/docker/docker/issues/24877#issuecomment-236004501","issue_url":"https://api.github.com/repos/docker/docker/issues/24877","id":236004501,"user":{"login":"hvpareja","id":1486780,"avatar_url":"https://avatars.githubusercontent.com/u/1486780?v=3","gravatar_id":"","url":"https://api.github.com/users/hvpareja","html_url":"https://github.com/hvpareja","followers_url":"https://api.github.com/users/hvpareja/followers","following_url":"https://api.github.com/users/hvpareja/following{/other_user}","gists_url":"https://api.github.com/users/hvpareja/gists{/gist_id}","starred_url":"https://api.github.com/users/hvpareja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvpareja/subscriptions","organizations_url":"https://api.github.com/users/hvpareja/orgs","repos_url":"https://api.github.com/users/hvpareja/repos","events_url":"https://api.github.com/users/hvpareja/events{/privacy}","received_events_url":"https://api.github.com/users/hvpareja/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T19:47:37Z","updated_at":"2016-07-28T19:47:37Z","body":"Is this not the same as: https://github.com/docker/docker/pull/24973 ?"}}
{"actor":{"display_login":"hvpareja"}}