{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/71820479","id":71820479,"diff_hunk":"@@ -31,27 +31,29 @@ node. For example, the tutorial uses a machine named `manager1`.\n \n     ```bash\n     $ docker swarm init --listen-addr 192.168.99.100:2377\n-    No --secret provided. Generated random secret:\n-      4ao565v9jsuogtq5t8s379ulb\n-\n-    Swarm initialized: current node (dxn1zf6l61qsb1josjja83ngz) is now a\n-    manager.\n+    Swarm initialized: current node (dxn1zf6l61qsb1josjja83ngz) is now a manager.\n \n     To add a worker to this swarm, run the following command:\n-      docker swarm join --secret 4ao565v9jsuogtq5t8s379ulb \\\n-      --ca-hash sha256:07ce22bd1a7619f2adc0d63bd110479a170e7c4e69df05b67a1aa2705c88ef09 \\\n-      192.168.99.100:2377\n+        docker swarm join \\\n+        --token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2e7c \\\n+        192.168.99.100:2377\n+\n+    To add a manager to this swarm, run the following command:\n+        docker swarm join \\\n+        --token SWMTKN-1-61ztec5kyafptydic6jfc1i33t37flcl4nuipzcusor96k7kby-5vy9t8u35tuqm7vh67lrz9xp6 \\\n+        192.168.99.100:2377\n     ```\n \n     The `--listen-addr` flag configures the manager node to listen on port\n     `2377`. The other nodes in the swarm must be able to access the manager at\n     the IP address.\n \n-    The `--ca-hash` flag provides the identity of the root CA for the manager\n-    node.\n+    The output incudes the commands to join new nodes to the swarm. Nodes will\n+    join as managers or workers depending on the value for the `--swarm-token`\n+    flag.\n \n 2. Save the output of `docker swarm init` that includes the command to join\n-worker nodes to the swarm.\n+nodes to the swarm.","path":"docs/swarm/swarm-tutorial/create-swarm.md","position":null,"original_position":37,"commit_id":"9ac145d73621b6393be763686b06b9cf5fb22ce2","original_commit_id":"0ecbb734400125e3bd0c40dc55d5aff8e088d2fb","user":{"login":"sfsmithcha","id":2415653,"avatar_url":"https://avatars.githubusercontent.com/u/2415653?v=3","gravatar_id":"","url":"https://api.github.com/users/sfsmithcha","html_url":"https://github.com/sfsmithcha","followers_url":"https://api.github.com/users/sfsmithcha/followers","following_url":"https://api.github.com/users/sfsmithcha/following{/other_user}","gists_url":"https://api.github.com/users/sfsmithcha/gists{/gist_id}","starred_url":"https://api.github.com/users/sfsmithcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfsmithcha/subscriptions","organizations_url":"https://api.github.com/users/sfsmithcha/orgs","repos_url":"https://api.github.com/users/sfsmithcha/repos","events_url":"https://api.github.com/users/sfsmithcha/events{/privacy}","received_events_url":"https://api.github.com/users/sfsmithcha/received_events","type":"User","site_admin":false},"body":"great comment. Less is definitely more -- and showcases the simplicity of the new process.","created_at":"2016-07-22T02:54:36Z","updated_at":"2016-07-22T02:54:36Z","html_url":"https://github.com/docker/docker/pull/24907#discussion_r71820479","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/24907","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/71820479"},"html":{"href":"https://github.com/docker/docker/pull/24907#discussion_r71820479"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/24907"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/24907","id":78380441,"html_url":"https://github.com/docker/docker/pull/24907","diff_url":"https://github.com/docker/docker/pull/24907.diff","patch_url":"https://github.com/docker/docker/pull/24907.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/24907","number":24907,"state":"open","locked":false,"title":"updates get started with swarm to use join-token","user":{"login":"sfsmithcha","id":2415653,"avatar_url":"https://avatars.githubusercontent.com/u/2415653?v=3","gravatar_id":"","url":"https://api.github.com/users/sfsmithcha","html_url":"https://github.com/sfsmithcha","followers_url":"https://api.github.com/users/sfsmithcha/followers","following_url":"https://api.github.com/users/sfsmithcha/following{/other_user}","gists_url":"https://api.github.com/users/sfsmithcha/gists{/gist_id}","starred_url":"https://api.github.com/users/sfsmithcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfsmithcha/subscriptions","organizations_url":"https://api.github.com/users/sfsmithcha/orgs","repos_url":"https://api.github.com/users/sfsmithcha/repos","events_url":"https://api.github.com/users/sfsmithcha/events{/privacy}","received_events_url":"https://api.github.com/users/sfsmithcha/received_events","type":"User","site_admin":false},"body":"**- What I did**\r\nUpdated the swarm tutorial to use the new `--join-token` syntax\r\n**- How I did it**\r\nUpdated output for `docker swarm init` in create-swarm.md. Updated commands for `swarm-join` in add-nodes.md.\r\n\r\nAlso cleaned up output of `docker node ls` where it exists.\r\n![img_3225](https://cloud.githubusercontent.com/assets/2415653/17037434/c166cfb8-4f45-11e6-8c1b-d5e764bfb5e4.jpg)\r\n\r\nSigned-off-by: Charles Smith <charles.smith@docker.com>","created_at":"2016-07-21T20:19:41Z","updated_at":"2016-07-22T02:54:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42d0fbf71c63337ca50c7c1606f14ac5161df0ed","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/53","html_url":"https://github.com/docker/docker/milestones/1.12.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/53/labels","id":1657301,"number":53,"title":"1.12.0","description":"feature/code freeze: June 14th, 2016","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":137,"closed_issues":717,"state":"open","created_at":"2016-03-21T13:47:53Z","updated_at":"2016-07-22T01:06:55Z","due_on":"2016-07-28T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/docker/docker/pulls/24907/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/24907/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/24907/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/9ac145d73621b6393be763686b06b9cf5fb22ce2","head":{"label":"sfsmithcha:update_tutorial_swarm_token","ref":"update_tutorial_swarm_token","sha":"9ac145d73621b6393be763686b06b9cf5fb22ce2","user":{"login":"sfsmithcha","id":2415653,"avatar_url":"https://avatars.githubusercontent.com/u/2415653?v=3","gravatar_id":"","url":"https://api.github.com/users/sfsmithcha","html_url":"https://github.com/sfsmithcha","followers_url":"https://api.github.com/users/sfsmithcha/followers","following_url":"https://api.github.com/users/sfsmithcha/following{/other_user}","gists_url":"https://api.github.com/users/sfsmithcha/gists{/gist_id}","starred_url":"https://api.github.com/users/sfsmithcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfsmithcha/subscriptions","organizations_url":"https://api.github.com/users/sfsmithcha/orgs","repos_url":"https://api.github.com/users/sfsmithcha/repos","events_url":"https://api.github.com/users/sfsmithcha/events{/privacy}","received_events_url":"https://api.github.com/users/sfsmithcha/received_events","type":"User","site_admin":false},"repo":{"id":55171255,"name":"docker","full_name":"sfsmithcha/docker","owner":{"login":"sfsmithcha","id":2415653,"avatar_url":"https://avatars.githubusercontent.com/u/2415653?v=3","gravatar_id":"","url":"https://api.github.com/users/sfsmithcha","html_url":"https://github.com/sfsmithcha","followers_url":"https://api.github.com/users/sfsmithcha/followers","following_url":"https://api.github.com/users/sfsmithcha/following{/other_user}","gists_url":"https://api.github.com/users/sfsmithcha/gists{/gist_id}","starred_url":"https://api.github.com/users/sfsmithcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfsmithcha/subscriptions","organizations_url":"https://api.github.com/users/sfsmithcha/orgs","repos_url":"https://api.github.com/users/sfsmithcha/repos","events_url":"https://api.github.com/users/sfsmithcha/events{/privacy}","received_events_url":"https://api.github.com/users/sfsmithcha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sfsmithcha/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/sfsmithcha/docker","forks_url":"https://api.github.com/repos/sfsmithcha/docker/forks","keys_url":"https://api.github.com/repos/sfsmithcha/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sfsmithcha/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sfsmithcha/docker/teams","hooks_url":"https://api.github.com/repos/sfsmithcha/docker/hooks","issue_events_url":"https://api.github.com/repos/sfsmithcha/docker/issues/events{/number}","events_url":"https://api.github.com/repos/sfsmithcha/docker/events","assignees_url":"https://api.github.com/repos/sfsmithcha/docker/assignees{/user}","branches_url":"https://api.github.com/repos/sfsmithcha/docker/branches{/branch}","tags_url":"https://api.github.com/repos/sfsmithcha/docker/tags","blobs_url":"https://api.github.com/repos/sfsmithcha/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sfsmithcha/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sfsmithcha/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/sfsmithcha/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sfsmithcha/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/sfsmithcha/docker/languages","stargazers_url":"https://api.github.com/repos/sfsmithcha/docker/stargazers","contributors_url":"https://api.github.com/repos/sfsmithcha/docker/contributors","subscribers_url":"https://api.github.com/repos/sfsmithcha/docker/subscribers","subscription_url":"https://api.github.com/repos/sfsmithcha/docker/subscription","commits_url":"https://api.github.com/repos/sfsmithcha/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/sfsmithcha/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/sfsmithcha/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/sfsmithcha/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/sfsmithcha/docker/contents/{+path}","compare_url":"https://api.github.com/repos/sfsmithcha/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sfsmithcha/docker/merges","archive_url":"https://api.github.com/repos/sfsmithcha/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sfsmithcha/docker/downloads","issues_url":"https://api.github.com/repos/sfsmithcha/docker/issues{/number}","pulls_url":"https://api.github.com/repos/sfsmithcha/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/sfsmithcha/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/sfsmithcha/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sfsmithcha/docker/labels{/name}","releases_url":"https://api.github.com/repos/sfsmithcha/docker/releases{/id}","deployments_url":"https://api.github.com/repos/sfsmithcha/docker/deployments","created_at":"2016-03-31T17:50:02Z","updated_at":"2016-03-31T17:50:14Z","pushed_at":"2016-07-22T02:54:08Z","git_url":"git://github.com/sfsmithcha/docker.git","ssh_url":"git@github.com:sfsmithcha/docker.git","clone_url":"https://github.com/sfsmithcha/docker.git","svn_url":"https://github.com/sfsmithcha/docker","homepage":"http://www.docker.com","size":98289,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"f5e1f6f6880391a5a3399023cf93a3c48502e57d","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","deployments_url":"https://api.github.com/repos/docker/docker/deployments","created_at":"2013-01-18T18:10:57Z","updated_at":"2016-07-22T01:41:19Z","pushed_at":"2016-07-22T02:54:10Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":205562,"stargazers_count":33253,"watchers_count":33253,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9642,"mirror_url":null,"open_issues_count":2035,"forks":9642,"open_issues":2035,"watchers":33253,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/24907"},"html":{"href":"https://github.com/docker/docker/pull/24907"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/24907"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/24907/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/24907/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/24907/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/9ac145d73621b6393be763686b06b9cf5fb22ce2"}}}}
{"actor":{"display_login":"sfsmithcha"}}