2018-11-09 15:10:41 +01:00
|
|
|
# context export
|
|
|
|
|
2023-01-06 19:04:05 +01:00
|
|
|
<!---MARKER_GEN_START-->
|
2022-02-23 18:05:12 +01:00
|
|
|
Export a context to a tar archive FILE or a tar stream on STDOUT.
|
2023-01-06 19:04:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2018-11-09 15:10:41 +01:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2022-02-23 18:05:12 +01:00
|
|
|
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:
|
|
|
|
|
|
|
|
```console
|
|
|
|
$ docker context export my-context -
|
|
|
|
```
|