docs: add anchor-tags for flags

This will generate "details_url" for options, so that the options
table on the pages at docs.docker.com link to the section describing
the option.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2022-03-30 15:05:29 +02:00
parent 885f44a5ba
commit 2b976720f4
56 changed files with 162 additions and 156 deletions

View File

@ -41,7 +41,7 @@ configuration to connect to different clusters or single nodes.
## Examples
### Create a context with a docker endpoint
### <a name=docker></a> Create a context with a docker endpoint (--docker)
To create a context from scratch provide the docker and, if required,
kubernetes options. The example below creates the context `my-context`
@ -53,7 +53,7 @@ $ docker context create \
my-context
```
### Create a context based on an existing context
### <a name=from></a> Create a context based on an existing context (--from)
Use the `--from=<context-name>` option to create a new context from
an existing context. The example below creates a new context named `my-context`