{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/26632","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/26632/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/26632/comments","events_url":"https://api.github.com/repos/docker/docker/issues/26632/events","html_url":"https://github.com/docker/docker/issues/26632","id":177438791,"number":26632,"title":"Allow user-generation of swarm join tokens","user":{"login":"mboggess","id":5660662,"avatar_url":"https://avatars.githubusercontent.com/u/5660662?v=3","gravatar_id":"","url":"https://api.github.com/users/mboggess","html_url":"https://github.com/mboggess","followers_url":"https://api.github.com/users/mboggess/followers","following_url":"https://api.github.com/users/mboggess/following{/other_user}","gists_url":"https://api.github.com/users/mboggess/gists{/gist_id}","starred_url":"https://api.github.com/users/mboggess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboggess/subscriptions","organizations_url":"https://api.github.com/users/mboggess/orgs","repos_url":"https://api.github.com/users/mboggess/repos","events_url":"https://api.github.com/users/mboggess/events{/privacy}","received_events_url":"https://api.github.com/users/mboggess/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-16T14:25:49Z","updated_at":"2016-09-16T15:03:39Z","closed_at":null,"body":"I've read through the docs, and it seems that there's no way for a user to generate their own token to give to `swarm init` and then `swarm join` commands. The docs use case is with all docker machines running on one system, and for that use case, it is practical to run `TOKEN=$(docker swarm join-token -q worker)`. However, given a more distributed use case, this workflow doesn't scale. For example, when automating the building and provisioning of Vagrant virtual machines with Ansible, unless the token is known ahead of time, the process for initializing swarm mode can't be part of that automated process.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/247624210","html_url":"https://github.com/docker/docker/issues/26632#issuecomment-247624210","issue_url":"https://api.github.com/repos/docker/docker/issues/26632","id":247624210,"user":{"login":"mboggess","id":5660662,"avatar_url":"https://avatars.githubusercontent.com/u/5660662?v=3","gravatar_id":"","url":"https://api.github.com/users/mboggess","html_url":"https://github.com/mboggess","followers_url":"https://api.github.com/users/mboggess/followers","following_url":"https://api.github.com/users/mboggess/following{/other_user}","gists_url":"https://api.github.com/users/mboggess/gists{/gist_id}","starred_url":"https://api.github.com/users/mboggess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboggess/subscriptions","organizations_url":"https://api.github.com/users/mboggess/orgs","repos_url":"https://api.github.com/users/mboggess/repos","events_url":"https://api.github.com/users/mboggess/events{/privacy}","received_events_url":"https://api.github.com/users/mboggess/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T15:03:39Z","updated_at":"2016-09-16T15:03:39Z","body":"Yeah, that's why I created this issue, because I couldn't find one either. I couldn't imagine that no one had talked about this. I'll look harder, but if you spot it, ping me. Thanks!"}}
{"actor":{"display_login":"mboggess"}}