docs: fix generated YAML due to trailing whitespace

If a file contains trailing whitespace, the YAML generator uses a
compact format, which is hard to read.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 2484a30534)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-09-29 21:59:36 +02:00
parent b53d702737
commit df5ca0c950
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ sourced from the file `/home/me/my-kube-config`:
$ docker context create \
--docker host=unix:///var/run/docker.sock \
--kubernetes config-file=/home/me/my-kube-config \
my-context
my-context
```
### Create a context based on an existing context
@ -76,7 +76,7 @@ an existing context. The example below creates a new context named `my-context`
from the existing context `existing-context`:
```bash
$ docker context create --from existing-context my-context
$ docker context create --from existing-context my-context
```
If the `--from` option is not set, the `context` is created from the current context: