mirror of https://github.com/docker/cli.git
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:
parent
b53d702737
commit
df5ca0c950
|
@ -66,7 +66,7 @@ sourced from the file `/home/me/my-kube-config`:
|
||||||
$ docker context create \
|
$ docker context create \
|
||||||
--docker host=unix:///var/run/docker.sock \
|
--docker host=unix:///var/run/docker.sock \
|
||||||
--kubernetes config-file=/home/me/my-kube-config \
|
--kubernetes config-file=/home/me/my-kube-config \
|
||||||
my-context
|
my-context
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create a context based on an existing 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`:
|
from the existing context `existing-context`:
|
||||||
|
|
||||||
```bash
|
```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:
|
If the `--from` option is not set, the `context` is created from the current context:
|
||||||
|
|
Loading…
Reference in New Issue