mirror of
https://github.com/apple/container.git
synced 2026-08-28 19:36:31 +00:00
[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:
@@ -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**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user