Merge pull request #16618 from abronan/fix_discovery_pkg_readme
Fix discovery package README with the right --cluster* flags
This commit is contained in:
commit
54df0b606e
1 changed files with 6 additions and 6 deletions
|
@ -13,29 +13,29 @@ Docker comes with multiple Discovery backends.
|
||||||
### Using etcd
|
### Using etcd
|
||||||
|
|
||||||
Point your Docker Engine instances to a common etcd instance. You can specify
|
Point your Docker Engine instances to a common etcd instance. You can specify
|
||||||
the address Docker uses to advertise the node using the `--discovery-address`
|
the address Docker uses to advertise the node using the `--cluster-advertise`
|
||||||
flag.
|
flag.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker daemon -H=<node_ip:2376> --discovery-address=<node_ip:2376> --discovery-backend etcd://<etcd_ip>/<path>
|
$ docker daemon -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store etcd://<etcd_ip1>,<etcd_ip2>/<path>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using consul
|
### Using consul
|
||||||
|
|
||||||
Point your Docker Engine instances to a common Consul instance. You can specify
|
Point your Docker Engine instances to a common Consul instance. You can specify
|
||||||
the address Docker uses to advertise the node using the `--discovery-address`
|
the address Docker uses to advertise the node using the `--cluster-advertise`
|
||||||
flag.
|
flag.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker daemon -H=<node_ip:2376> --discovery-address=<node_ip:2376> --discovery-backend consul://<consul_ip>/<path>
|
$ docker daemon -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store consul://<consul_ip>/<path>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using zookeeper
|
### Using zookeeper
|
||||||
|
|
||||||
Point your Docker Engine instances to a common Zookeeper instance. You can specify
|
Point your Docker Engine instances to a common Zookeeper instance. You can specify
|
||||||
the address Docker uses to advertise the node using the `--discovery-address`
|
the address Docker uses to advertise the node using the `--cluster-advertise`
|
||||||
flag.
|
flag.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker daemon -H=<node_ip:2376> --discovery-address=<node_ip:2376> --discovery-backend zk://<zk_addr1>,<zk_addr2>>/<path>
|
$ docker daemon -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store zk://<zk_addr1>,<zk_addr2>/<path>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue