Linux command
podman-save 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Save image to tar
podman save -o [image.tar] [image:tag]
Save to stdout
podman save [image:tag] > [image.tar]
Save compressed
podman save [image:tag] | gzip > [image.tar.gz]
Save multiple images
podman save -o [images.tar] [image1:tag] [image2:tag]
说明
podman save saves one or more images to a tar archive. The archive preserves all image layers and metadata, suitable for transfer between systems. Use podman load to restore saved images.
参数
- -o, --output _file_
- Output file path.
- --compress
- Compress layers.
- --format _format_
- Output format (oci-archive, docker-archive).
- -q, --quiet
- Suppress output.
FAQ
What is the podman-save command used for?
podman save saves one or more images to a tar archive. The archive preserves all image layers and metadata, suitable for transfer between systems. Use podman load to restore saved images.
How do I run a basic podman-save example?
Run `podman save -o [image.tar] [image:tag]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o, --output _file_ do in podman-save?
Output file path.