docker context update
Update a context
Usage
$ docker context update [OPTIONS] CONTEXT
Refer to the options section for an overview of available OPTIONS
for this command.
Description
Updates an existing context
.
See context create.
For example uses of this command, refer to the examples section below.
Options
Name, shorthand | Default | Description |
--description |
Description of the context | |
--docker |
set the docker endpoint |
Examples
Update an existing context
$ docker context update \
--description "some description" \
--docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file" \
my-context
Parent command
Command | Description |
---|---|
docker context | Manage contexts |
Related commands
Command | Description |
docker context create | Create a context |
docker context export | Export a context to a tar archive FILE or a tar stream on STDOUT. |
docker context import | Import a context from a tar or zip file |
docker context inspect | Display detailed information on one or more contexts |
docker context ls | List contexts |
docker context rm | Remove one or more contexts |
docker context show | Print the name of the current context |
docker context update | Update a context |
docker context use | Set the current docker context |