diff --git a/docs/reference/commandline/images.md b/docs/reference/commandline/images.md
index 94343c7e2e..402ee04f30 100644
--- a/docs/reference/commandline/images.md
+++ b/docs/reference/commandline/images.md
@@ -294,7 +294,7 @@ busybox uclibc e02e811dd08f 5 weeks ago
busybox glibc 21c16b6787c6 5 weeks ago 4.19 MB
```
-### Format the output
+### Format the output (--format)
The formatting option (`--format`) will pretty print container output
using a Go template.
diff --git a/docs/reference/commandline/node_ls.md b/docs/reference/commandline/node_ls.md
index 54d95c1285..26cc53b376 100644
--- a/docs/reference/commandline/node_ls.md
+++ b/docs/reference/commandline/node_ls.md
@@ -29,7 +29,7 @@ Options:
## Description
Lists all the nodes that the Docker Swarm manager knows about. You can filter
-using the `-f` or `--filter` flag. Refer to the [filtering](#filtering) section
+using the `-f` or `--filter` flag. Refer to the [filtering](#filter) section
for more information about available filter options.
> **Note**
diff --git a/docs/reference/commandline/node_ps.md b/docs/reference/commandline/node_ps.md
index 3abeda32cf..477a85620c 100644
--- a/docs/reference/commandline/node_ps.md
+++ b/docs/reference/commandline/node_ps.md
@@ -24,7 +24,7 @@ Options:
## Description
Lists all the tasks on a Node that Docker knows about. You can filter using the
-`-f` or `--filter` flag. Refer to the [filtering](#filtering) section for more
+`-f` or `--filter` flag. Refer to the [filtering](#filter) section for more
information about available filter options.
> **Note**
diff --git a/docs/reference/commandline/plugin_ls.md b/docs/reference/commandline/plugin_ls.md
index 0fd20af84e..2e8014de4c 100644
--- a/docs/reference/commandline/plugin_ls.md
+++ b/docs/reference/commandline/plugin_ls.md
@@ -32,7 +32,7 @@ Options:
Lists all the plugins that are currently installed. You can install plugins
using the [`docker plugin install`](plugin_install.md) command.
You can also filter using the `-f` or `--filter` flag.
-Refer to the [filtering](#filtering) section for more information about available filter options.
+Refer to the [filtering](#filter) section for more information about available filter options.
## Examples
diff --git a/docs/reference/commandline/service_create.md b/docs/reference/commandline/service_create.md
index 1332defb45..45e9f453b9 100644
--- a/docs/reference/commandline/service_create.md
+++ b/docs/reference/commandline/service_create.md
@@ -299,7 +299,7 @@ $ docker service create \
For more information about labels, refer to [apply custom
metadata](https://docs.docker.com/config/labels-custom-metadata/).
-### Add bind mounts, volumes or memory filesystems
+### Add bind mounts, volumes or memory filesystems (--mount)
Docker supports three different kinds of mounts, which allow containers to read
from or write to files or directories, either on the host operating system, or
diff --git a/docs/reference/commandline/service_inspect.md b/docs/reference/commandline/service_inspect.md
index 02772c9ff2..59ecd299d5 100644
--- a/docs/reference/commandline/service_inspect.md
+++ b/docs/reference/commandline/service_inspect.md
@@ -149,9 +149,9 @@ Ports:
You can also use `--format pretty` for the same effect.
+### Format the output (--format)
-#### Find the number of tasks running as part of a service
-
+You can use the --format option to obtain specific information about a
The `--format` option can be used to obtain specific information about a
service. For example, the following command outputs the number of replicas
of the "redis" service.
diff --git a/docs/reference/commandline/service_update.md b/docs/reference/commandline/service_update.md
index 5ec1594d6b..877cb70cbc 100644
--- a/docs/reference/commandline/service_update.md
+++ b/docs/reference/commandline/service_update.md
@@ -156,7 +156,7 @@ point, effectively removing the `test-data` volume. Each command returns the
service name.
- The `--mount-add` flag takes the same parameters as the `--mount` flag on
- `service create`. Refer to the [volumes and bind mounts](service_create.md#mount-add)
+ `service create`. Refer to the [volumes and bind mounts](service_create.md#mount)
section in the `service create` reference for details.
- The `--mount-rm` flag takes the `target` path of the mount.
diff --git a/docs/reference/commandline/volume_ls.md b/docs/reference/commandline/volume_ls.md
index a3a3ca190b..2039500c8e 100644
--- a/docs/reference/commandline/volume_ls.md
+++ b/docs/reference/commandline/volume_ls.md
@@ -33,7 +33,7 @@ Options:
## Description
List all the volumes known to Docker. You can filter using the `-f` or
-`--filter` flag. Refer to the [filtering](#filtering) section for more
+`--filter` flag. Refer to the [filtering](#filter) section for more
information about available filter options.
## Examples
@@ -56,7 +56,7 @@ local rosemary
local tyler
```
-### Filtering
+### Filtering (--filter)
The filtering flag (`-f` or `--filter`) format is of "key=value". If there is more
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`)