github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/docs/reference/commandline/context_update.md (about)

     1  ---
     2  title: "context update"
     3  description: "The context update command description and usage"
     4  keywords: "context, update"
     5  ---
     6  
     7  # context update
     8  
     9  ```markdown
    10  Usage:  docker context update [OPTIONS] CONTEXT
    11  
    12  Update a context
    13  
    14  Docker endpoint config:
    15  
    16  NAME                DESCRIPTION
    17  from                Copy Docker endpoint configuration from an existing context
    18  host                Docker endpoint on which to connect
    19  ca                  Trust certs signed only by this CA
    20  cert                Path to TLS certificate file
    21  key                 Path to TLS key file
    22  skip-tls-verify     Skip TLS certificate validation
    23  
    24  Kubernetes endpoint config:
    25  
    26  NAME                 DESCRIPTION
    27  from                 Copy Kubernetes endpoint configuration from an existing context
    28  config-file          Path to a Kubernetes config file
    29  context-override     Overrides the context set in the kubernetes config file
    30  namespace-override   Overrides the namespace set in the kubernetes config file
    31  
    32  Example:
    33  
    34  $ docker context update my-context --description "some description" --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file"
    35  
    36  Options:
    37        --default-stack-orchestrator string   Default orchestrator for
    38                                              stack operations to use with
    39                                              this context
    40                                              (swarm|kubernetes|all)
    41        --description string                  Description of the context
    42        --docker stringToString               set the docker endpoint
    43                                              (default [])
    44        --kubernetes stringToString           set the kubernetes endpoint
    45                                              (default [])
    46  ```
    47  
    48  ## Description
    49  
    50  Updates an existing `context`.
    51  See [context create](context_create.md).
    52  
    53  ## Examples
    54  
    55  ### Update an existing context
    56  
    57  ```bash
    58  $ docker context update \
    59      --description "some description" \
    60      --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file" \
    61      my-context
    62  ```