apptainer-cache
Manage the local Apptainer container cache
TLDR
List all cached images
SYNOPSIS
apptainer cache [subcommand] [options]
DESCRIPTION
apptainer cache manages the local Apptainer container image cache. When pulling or building containers, Apptainer stores intermediate images and layers locally to speed up subsequent operations. This command allows listing cache contents and cleaning up disk space.
The cache is stored at $HOME/.apptainer/cache by default, or at the path specified by the APPTAINER_CACHEDIR environment variable.
PARAMETERS
-T, --type strings
Limit operation to specific cache types: library, oci, shub, blob, net, oras, all (default: all)-v, --verbose
Display detailed information about cached images (list only)-D, --days int
Remove cache entries older than the specified number of days (clean only)-n, --dry-run
Show what would be deleted without actually removing anything (clean only)-f, --force
Suppress confirmation prompts and clean immediately (clean only)
SUBCOMMANDS
list
Display the contents of the local cache, showing size and type of cached imagesclean
Remove items from the local cache to reclaim disk space
CAVEATS
Large builds and frequent pulls can consume significant disk space in the cache directory. The cache is per-user and does not affect other users on the system. Cleaning the cache forces re-download of images on next use.
SEE ALSO
apptainer(1), apptainer-build(1), apptainer-pull(1)
