1
0
mirror of https://github.com/docker/cli.git synced 2025-04-26 09:28:51 +03:00
cli/docs/reference/commandline/context_export.md
Sebastiaan van Stijn 803b9071e7
docs: fix, and touch-up "docker context" docs
Using `/var/run/docker.sock` as docker host is invalid, and causes
an error, so adding `unix://` to it.

In addition, we document the name of the context to go after the
options, so change the order in the examples.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-07 13:53:25 +02:00

642 B

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