mirror of https://github.com/docker/docs.git
documentation: fix some documentation typos
Signed-off-by: Thomas Meson <zllak@hycik.org>
This commit is contained in:
parent
a58043d354
commit
a66d0fa684
|
@ -22,8 +22,8 @@ $ swarm manage --discovery token://6856663cdefdec325839a4b7e1de38e8 -H=<swarm_ip
|
||||||
|
|
||||||
# use the regular docker cli
|
# use the regular docker cli
|
||||||
$ docker -H <swarm_ip:swarm_port> info
|
$ docker -H <swarm_ip:swarm_port> info
|
||||||
$ docker -H <swarm_ip:swarm_port> run ...
|
$ docker -H <swarm_ip:swarm_port> run ...
|
||||||
$ docker -H <swarm_ip:swarm_port> ps
|
$ docker -H <swarm_ip:swarm_port> ps
|
||||||
$ docker -H <swarm_ip:swarm_port> logs ...
|
$ docker -H <swarm_ip:swarm_port> logs ...
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -45,8 +45,8 @@ $ swarm manage --discovery file:///tmp/my_cluster -H=<swarm_ip:swarm_port>
|
||||||
|
|
||||||
# use the regular docker cli
|
# use the regular docker cli
|
||||||
$ docker -H <swarm_ip:swarm_port> info
|
$ docker -H <swarm_ip:swarm_port> info
|
||||||
$ docker -H <swarm_ip:swarm_port> run ...
|
$ docker -H <swarm_ip:swarm_port> run ...
|
||||||
$ docker -H <swarm_ip:swarm_port> ps
|
$ docker -H <swarm_ip:swarm_port> ps
|
||||||
$ docker -H <swarm_ip:swarm_port> logs ...
|
$ docker -H <swarm_ip:swarm_port> logs ...
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -61,20 +61,20 @@ http://<node_ip:2375>
|
||||||
# on each of your nodes, start the swarm agent
|
# on each of your nodes, start the swarm agent
|
||||||
# <node_ip> doesn't have to be public (eg. 192.168.0.X),
|
# <node_ip> doesn't have to be public (eg. 192.168.0.X),
|
||||||
# as long as the other nodes can reach it, it is fine.
|
# as long as the other nodes can reach it, it is fine.
|
||||||
$ swarm join --discovery etcd://<etcd_ip>/>path> --addr=<node_ip:2375>
|
$ swarm join --discovery etcd://<etcd_ip>/<path> --addr=<node_ip:2375>
|
||||||
|
|
||||||
# start the manager on any machine or your laptop
|
# start the manager on any machine or your laptop
|
||||||
$ swarm manage --discovery etcd://<etcd_ip>/>path> -H=<swarm_ip:swarm_port>
|
$ swarm manage --discovery etcd://<etcd_ip>/<path> -H=<swarm_ip:swarm_port>
|
||||||
|
|
||||||
# use the regular docker cli
|
# use the regular docker cli
|
||||||
$ docker -H <swarm_ip:swarm_port> info
|
$ docker -H <swarm_ip:swarm_port> info
|
||||||
$ docker -H <swarm_ip:swarm_port> run ...
|
$ docker -H <swarm_ip:swarm_port> run ...
|
||||||
$ docker -H <swarm_ip:swarm_port> ps
|
$ docker -H <swarm_ip:swarm_port> ps
|
||||||
$ docker -H <swarm_ip:swarm_port> logs ...
|
$ docker -H <swarm_ip:swarm_port> logs ...
|
||||||
...
|
...
|
||||||
|
|
||||||
# list nodes in your cluster
|
# list nodes in your cluster
|
||||||
$ swarm list --discovery etcd://<etcd_ip>/>path>
|
$ swarm list --discovery etcd://<etcd_ip>/<path>
|
||||||
http://<node_ip:2375>
|
http://<node_ip:2375>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ type DiscoveryService interface {
|
||||||
```
|
```
|
||||||
|
|
||||||
######Initialize
|
######Initialize
|
||||||
take the `--dicovery` withtout the scheme and a heartbeat (in seconds)
|
take the `--discovery` without the scheme and a heartbeat (in seconds)
|
||||||
|
|
||||||
######Fetch
|
######Fetch
|
||||||
returns the list of all the nodes from the discovery
|
returns the list of all the nodes from the discovery
|
||||||
|
|
Loading…
Reference in New Issue