mirror of
https://github.com/docker/cli.git
synced 2025-08-30 12:01:10 +03:00
these markdown files are not consumed directly in the docs, but only their content is included through the YAML does, so there's no need to have these comments in them Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
23 lines
642 B
Markdown
23 lines
642 B
Markdown
---
|
|
title: "context export"
|
|
description: "The context export command description and usage"
|
|
keywords: "context, export"
|
|
---
|
|
|
|
# context export
|
|
|
|
```markdown
|
|
Usage: docker context export [OPTIONS] CONTEXT [FILE|-]
|
|
|
|
Export a context to a tar or kubeconfig file
|
|
|
|
Options:
|
|
--kubeconfig Export as a kubeconfig file
|
|
```
|
|
|
|
## Description
|
|
|
|
Exports a context in a file that can then be used with `docker context import` (or with `kubectl` if `--kubeconfig` is set).
|
|
Default output filename is `<CONTEXT>.dockercontext`, or `<CONTEXT>.kubeconfig` if `--kubeconfig` is set.
|
|
To export to `STDOUT`, you can run `docker context export my-context -`.
|