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