diff --git a/discovery/README.md b/discovery/README.md index 0fa48193f8..e93490ac45 100644 --- a/discovery/README.md +++ b/discovery/README.md @@ -22,8 +22,8 @@ $ swarm manage --discovery token://6856663cdefdec325839a4b7e1de38e8 -H= info -$ docker -H run ... -$ docker -H ps +$ docker -H run ... +$ docker -H ps $ docker -H logs ... ... @@ -45,8 +45,8 @@ $ swarm manage --discovery file:///tmp/my_cluster -H= # use the regular docker cli $ docker -H info -$ docker -H run ... -$ docker -H ps +$ docker -H run ... +$ docker -H ps $ docker -H logs ... ... @@ -61,20 +61,20 @@ http:// # on each of your nodes, start the swarm agent # doesn't have to be public (eg. 192.168.0.X), # as long as the other nodes can reach it, it is fine. -$ swarm join --discovery etcd:///>path> --addr= +$ swarm join --discovery etcd:/// --addr= # start the manager on any machine or your laptop -$ swarm manage --discovery etcd:///>path> -H= +$ swarm manage --discovery etcd:/// -H= # use the regular docker cli $ docker -H info -$ docker -H run ... -$ docker -H ps +$ docker -H run ... +$ docker -H ps $ docker -H logs ... ... # list nodes in your cluster -$ swarm list --discovery etcd:///>path> +$ swarm list --discovery etcd:/// http:// ``` @@ -93,7 +93,7 @@ type DiscoveryService interface { ``` ######Initialize -take the `--dicovery` withtout the scheme and a heartbeat (in seconds) +take the `--discovery` without the scheme and a heartbeat (in seconds) ######Fetch returns the list of all the nodes from the discovery