2018-11-09 09:10:41 -05:00
|
|
|
# context update
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
<!---MARKER_GEN_START-->
|
2018-11-09 09:10:41 -05:00
|
|
|
Update a context
|
|
|
|
|
|
|
|
Docker endpoint config:
|
|
|
|
|
|
|
|
NAME DESCRIPTION
|
2023-01-06 13:04:05 -05:00
|
|
|
from Copy named context's Docker endpoint configuration
|
2018-11-09 09:10:41 -05:00
|
|
|
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"
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:----------------|:-----------------|:--------|:---------------------------|
|
|
|
|
| `--description` | `string` | | Description of the context |
|
|
|
|
| `--docker` | `stringToString` | | set the docker endpoint |
|
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2018-11-09 09:10:41 -05:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Updates an existing `context`.
|
2020-05-07 07:53:25 -04:00
|
|
|
See [context create](context_create.md).
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
### Update an existing context
|
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2020-05-07 07:53:25 -04:00
|
|
|
$ docker context update \
|
|
|
|
--description "some description" \
|
|
|
|
--docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file" \
|
|
|
|
my-context
|
|
|
|
```
|