docker context update

Update a context

Usage

docker context update [OPTIONS] CONTEXT

Description

Updates an existing context. See context create.

Options

OptionShortDefaultDescription
--default-stack-orchestratorDeprecated Default orchestrator for stack operations to use with this context (swarm|kubernetes|all)
--descriptionDescription of the context
--dockerset the docker endpoint
--kubernetesDeprecated Kubernetes set the kubernetes 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