mirror of
https://github.com/docker/cli.git
synced 2025-04-26 09:28:51 +03:00
Keep frontmatter for docker, dockerd and index markdown files. Also needs to move cli.md > docker.md before generation and then move it back because cli.md is needed for yaml generation on docs website: https://github.com/docker/cli/pull/3924#discussion_r1059986605 Signed-off-by: Kevin Alvarez <crazy-max@users.noreply.github.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
46 lines
1.2 KiB
Markdown
46 lines
1.2 KiB
Markdown
# context update
|
|
|
|
<!---MARKER_GEN_START-->
|
|
Update a context
|
|
|
|
Docker endpoint config:
|
|
|
|
NAME DESCRIPTION
|
|
from Copy named context's Docker endpoint configuration
|
|
host Docker endpoint on which to connect
|
|
ca Trust certs signed only by this CA
|
|
cert Path to TLS certificate file
|
|
key Path to TLS key file
|
|
skip-tls-verify Skip TLS certificate validation
|
|
|
|
Example:
|
|
|
|
$ docker context update my-context --description "some description" --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file"
|
|
|
|
|
|
### Options
|
|
|
|
| Name | Type | Default | Description |
|
|
|:----------------|:-----------------|:--------|:---------------------------|
|
|
| `--description` | `string` | | Description of the context |
|
|
| `--docker` | `stringToString` | | set the docker endpoint |
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
|
|
|
## Description
|
|
|
|
Updates an existing `context`.
|
|
See [context create](context_create.md).
|
|
|
|
## Examples
|
|
|
|
### Update an existing context
|
|
|
|
```console
|
|
$ docker context update \
|
|
--description "some description" \
|
|
--docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file" \
|
|
my-context
|
|
```
|