[container]: add container export for live containers (#1630)

- When container is not running, the runtime helper
  traverses the container's root fs and writes it to the
  specified tar archive or stdout.
- When the container is running, the helper performs
  the same operation but wraps it in freeze/thaw
  to ensure data integrity for the resulting archive.
This commit is contained in:
Saehej Kang
2026-08-02 14:55:01 -07:00
committed by GitHub
parent 6e65319fe4
commit da8bec6223
9 changed files with 130 additions and 7 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ container exec [--detach] [--env <env> ...] [--env-file <env-file> ...] [--gid <
### `container export`
Exports a stopped container's filesystem as a tar archive. The container must be stopped before exporting. If no output file is specified, the tar stream is written to stdout.
Exports a container's filesystem as a tar archive. For running containers, export automatically takes a runtime snapshot to preserve consistency. If no output file is specified, the tar stream is written to stdout.
**Usage**