commands.sh

apptainer cache

linux

Manage the local Apptainer cache.

More info →

Options (5)

-v, --verboseboolean

List cached container images with detailed information

Example: apptainer cache list {{[-v|--verbose]}}
-T, --typeboolean

List only a specific cache type

Example: apptainer cache list {{[-T|--type]}} {{library|oci|shub|blob|...}}
-D, --daysboolean

Clean cache entries older than a specific number of days

Example: apptainer cache clean {{[-D|--days]}} {{days}}
-n, --dry-runboolean

Preview what would be cleaned without removing anything

Example: apptainer cache clean {{[-n|--dry-run]}}
-f, --forceboolean

Force clean without confirmation

Example: apptainer cache clean {{[-f|--force]}}

Examples (8)

List all cached container images

List cached container images with detailed information

apptainer cache list [-v|--verbose]

List only a specific cache type

apptainer cache list [-T|--type] library|oci|shub|blob|...

Clean the entire cache

Clean only a specific cache type

apptainer cache clean [-T|--type] library|oci|shub|blob|...

Clean cache entries older than a specific number of days

apptainer cache clean [-D|--days] days

Preview what would be cleaned without removing anything

apptainer cache clean [-n|--dry-run]

Force clean without confirmation

apptainer cache clean [-f|--force]
made by @shridhargupta | data from tldr-pages