Standardized formatting of CLI reference commands

Command name should be a H1

Only Description, Examples, and Related Commands should be H2

Changed 'Related information' heading to 'Related commands' since 99% it is only linking commands

Added some examples where relevant

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
(cherry picked from commit 52df69f00d)
This commit is contained in:
Misty Stanley-Jones
2017-04-03 14:16:43 -07:00
parent ce07fb6b0f
commit 68e914ce62
101 changed files with 2740 additions and 1726 deletions

View File

@@ -27,10 +27,14 @@ Options:
-q, --quiet Only display IDs
```
### Description
Lists the services that are running as part of the specified stack. This
command has to be run targeting a manager node.
For example, the following command shows all services in the `myapp` stack:
### Examples
The following command shows all services in the `myapp` stack:
```bash
$ docker stack services myapp
@@ -40,7 +44,7 @@ ID NAME REPLICAS IMAGE
dn7m7nhhfb9y myapp_db 1/1 mysql@sha256:a9a5b559f8821fe73d58c3606c812d1c044868d42c63817fa5125fd9d8b7b539
```
## Filtering
### Filtering
The filtering flag (`-f` or `--filter`) format is a `key=value` pair. If there
is more than one filter, then pass multiple flags (e.g. `--filter "foo=bar" --filter "bif=baz"`).
@@ -62,7 +66,7 @@ The currently supported filters are:
* name (`--filter name=myapp_web`)
* label (`--filter label=key=value`)
## Related information
## Related commands
* [stack deploy](stack_deploy.md)
* [stack ls](stack_ls.md)