docker-cli/docs/reference/commandline/context_export.md
Simon Ferquel 591385a1d0 Fast Context Switch: commands
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
2019-01-10 22:25:43 +01:00

1.0 KiB

title, description, keywords
title description keywords
context export The context export command description and usage context, export

context export

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 -.