docker context export
Description
Export a context to a tar or kubeconfig file
Usage
docker context export [OPTIONS] CONTEXT [FILE|-]
Extended 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 -.
Options
| Name, shorthand |
Default |
Description |
--kubeconfig |
|
Export as a kubeconfig file |
Parent command