github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/context_export.md (about) 1 # context export 2 3 <!---MARKER_GEN_START--> 4 Export a context to a tar archive FILE or a tar stream on STDOUT. 5 6 7 <!---MARKER_GEN_END--> 8 9 ## Description 10 11 Exports a context to a file that can then be used with `docker context import`. 12 13 The default output filename is `<CONTEXT>.dockercontext`. To export to `STDOUT`, 14 use `-` as filename, for example: 15 16 ```console 17 $ docker context export my-context - 18 ```