docker context export
Export a context to a tar archive FILE or a tar stream on STDOUT.
Usage
$ docker context export [OPTIONS] CONTEXT [FILE|-]
Refer to the options section for an overview of available OPTIONS
for this command.
Description
Exports a context to a file that can then be used with docker context import
.
The default output filename is <CONTEXT>.dockercontext
. To export to STDOUT
,
use -
as filename, for example:
$ docker context export my-context -
Options
Name, shorthand | Default | Description |
Parent command
Command | Description |
---|---|
docker context | Manage contexts |
Related commands
Command | Description |
docker context create | Create a context |
docker context export | Export a context to a tar archive FILE or a tar stream on STDOUT. |
docker context import | Import a context from a tar or zip file |
docker context inspect | Display detailed information on one or more contexts |
docker context ls | List contexts |
docker context rm | Remove one or more contexts |
docker context show | Print the name of the current context |
docker context update | Update a context |
docker context use | Set the current docker context |