<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><figure class="quote"><figcaption><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="en">Swarm discovery - Docker Documentation</cite>
(<time>2015-07-23 09:02:20 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://docs.docker.com/v1.5/swarm/discovery/">https://docs.docker.com/v1.5/swarm/discovery/</anchor-external></p></figcaption><blockquote><p>Using the hosted discovery service</p><p># create a cluster</p><p>$ swarm create</p><p>6856663cdefdec325839a4b7e1de38e8 # &lt;- this is your unique &lt;cluster_id&gt;</p><p># on each of your nodes, start the swarm agent</p><p>#  &lt;node_ip&gt; doesn't have to be public (eg. 192.168.0.X),</p><p>#  as long as the swarm manager can access it.</p><p>$ swarm join --addr=<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="node_ip:2375">node_ip:2375</anchor-external> token://&lt;cluster_id&gt;</p><p># start the manager on any machine or your laptop</p><p>$ swarm manage -H tcp://<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="swarm_ip:swarm_port">swarm_ip:swarm_port</anchor-external> token://&lt;cluster_id&gt;</p></blockquote></figure></body></html>