LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

podman-volume

Manage Podman volumes

TLDR

List volumes
$ podman volume ls
copy
Create a named volume
$ podman volume create [volume]
copy
Export a volume to a tar archive
$ podman volume export -o [path/to/file.tar] [volume]
copy
Import a tar archive into an existing volume
$ podman volume import [volume] [path/to/file.tar]
copy
Inspect a volume
$ podman volume inspect [volume]
copy
Remove volumes that no container uses
$ podman volume prune
copy

SYNOPSIS

podman volume subcommand

DESCRIPTION

podman volume manages named volumes for Podman containers. A volume is storage that outlives the container that uses it. Containers attach a volume with podman run -v or --mount. This command creates, lists, copies, and deletes those volumes. It is a subcommand of podman, not a separate program.export and import move the files inside a volume as a tar archive. Import writes into a volume that create (or a previous container) already made. prune deletes only volumes that no container still references.

PARAMETERS

create name

Create a volume. With no name, Podman generates one.
ls
List volumes. list is an alias of ls.
inspect volume...
Print detailed information about one or more volumes.
export volume
Write the volume contents as a tar archive. -o sets the output file.
import volume file
Copy a tar archive into a volume that already exists.
rm volume...
Remove one or more volumes.
prune
Remove volumes that no container is using.
exists volume
Exit successfully when the volume exists.
mount volume
Mount a volume and print the mount point.
unmount volume
Unmount a volume.
rename old new
Rename a volume.
reload
Reload volumes from volume plugins.

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

rm and prune refuse a volume that a container still uses. Export and import do not create the volume for you. A volume plugin must be available before reload can see the volumes it provides.

SEE ALSO

RESOURCES

Copied to clipboard
Kai