• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..06-May-2019-

file/H06-May-2019-223169

kv/H06-May-2019-516389

memory/H06-May-2019-143102

nodes/H06-May-2019-10780

README.mdH A D06-May-20191.1 KiB4229

backends.goH A D06-May-20193 KiB10879

discovery.goH A D06-May-20191.1 KiB3617

discovery_test.goH A D06-May-20194.1 KiB138102

entry.goH A D06-May-20191.9 KiB9571

generator.goH A D06-May-2019702 3628

generator_test.goH A D06-May-20191.8 KiB5446

README.md

1---
2page_title: Docker discovery
3page_description: discovery
4page_keywords: docker, clustering, discovery
5---
6
7# Discovery
8
9Docker comes with multiple Discovery backends.
10
11## Backends
12
13### Using etcd
14
15Point your Docker Engine instances to a common etcd instance. You can specify
16the address Docker uses to advertise the node using the `--cluster-advertise`
17flag.
18
19```bash
20$ dockerd -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store etcd://<etcd_ip1>,<etcd_ip2>/<path>
21```
22
23### Using consul
24
25Point your Docker Engine instances to a common Consul instance. You can specify
26the address Docker uses to advertise the node using the `--cluster-advertise`
27flag.
28
29```bash
30$ dockerd -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store consul://<consul_ip>/<path>
31```
32
33### Using zookeeper
34
35Point your Docker Engine instances to a common Zookeeper instance. You can specify
36the address Docker uses to advertise the node using the `--cluster-advertise`
37flag.
38
39```bash
40$ dockerd -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store zk://<zk_addr1>,<zk_addr2>/<path>
41```
42