The Wayback Machine - https://web.archive.org/web/20260204044149/https://docs.docker.com/reference/cli/docker/context/update/
Answers are generated based on the documentation.

docker context update

DescriptionUpdate a context
Usagedocker context update [OPTIONS] CONTEXT

Description

Updates an existing context. See context create.

Options

OptionDefaultDescription
--descriptionDescription of the context
--dockerset 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