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

     1  ---
     2  title: "context export"
     3  description: "The context export command description and usage"
     4  keywords: "context, export"
     5  ---
     6  
     7  # context export
     8  
     9  ```markdown
    10  Usage:  docker context export [OPTIONS] CONTEXT [FILE|-]
    11  
    12  Export a context to a tar or kubeconfig file
    13  
    14  Options:
    15        --kubeconfig   Export as a kubeconfig file
    16  ```
    17  
    18  ## Description
    19  
    20  Exports a context in a file that can then be used with `docker context import`
    21  (or with `kubectl` if `--kubeconfig` is set). Default output filename is
    22  `<CONTEXT>.dockercontext`, or `<CONTEXT>.kubeconfig` if `--kubeconfig` is set.
    23  To export to `STDOUT`, you can run `docker context export my-context -`.