Linux command
podman-export 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Export container filesystem
podman export [container] -o [container.tar]
Export to stdout
podman export [container] > [container.tar]
Export and compress
podman export [container] | gzip > [container.tar.gz]
说明
podman export exports a container's filesystem as a tar archive and writes it to stdout by default. Unlike podman save, it exports the container filesystem as a flat tar (without image layer history or metadata). The result can be imported with podman import to create a new image.
参数
- -o, --output _file_
- Write to a file instead of stdout.
- -h, --help
- Print usage statement.
FAQ
What is the podman-export command used for?
podman export exports a container's filesystem as a tar archive and writes it to stdout by default. Unlike podman save, it exports the container filesystem as a flat tar (without image layer history or metadata). The result can be imported with podman import to create a new image.
How do I run a basic podman-export example?
Run `podman export [container] -o [container.tar]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o, --output _file_ do in podman-export?
Write to a file instead of stdout.