LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

podman-save

Save container images to tar archives

TLDR

Save image to tar
$ podman save -o [image.tar] [image:tag]
copy
Save to stdout
$ podman save [image:tag] > [image.tar]
copy
Save compressed
$ podman save [image:tag] | gzip > [image.tar.gz]
copy
Save multiple images
$ podman save -o [images.tar] [image1:tag] [image2:tag]
copy

SYNOPSIS

podman save [options] image...

DESCRIPTION

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.

PARAMETERS

-o, --output file

Output file path.
--compress
Compress layers.
--format format
Output format (oci-archive, docker-archive).
-q, --quiet
Suppress output.

EXAMPLES

$ # Save to file
podman save -o nginx.tar nginx:latest

# Save with compression
podman save myimage:v1 | gzip > myimage.tar.gz

# Save in OCI format
podman save --format oci-archive -o image.tar myimage

# Save multiple images
podman save -o all-images.tar image1:v1 image2:v2

# Transfer to another host
podman save myimage | ssh user@host podman load
copy

FORMATS

$ docker-archive - Docker compatible (default)
oci-archive    - OCI format
oci-dir        - OCI directory layout
copy

INSTALL

sudo apt install podman
copy
sudo dnf install podman
copy
sudo pacman -S podman
copy
sudo apk add podman
copy
sudo zypper install podman
copy
brew install podman
copy
nix profile install nixpkgs#podman
copy

CAVEATS

Archives can be large. Use podman export for filesystem-only export.

HISTORY

podman save is part of Podman by Red Hat, providing Docker-compatible image archival functionality.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid