LinuxCommandLibrary

apptainer-inspect

Display metadata from container images.

TLDR

Show the labels of an image (default)

$ apptainer inspect [path/to/image.sif]
copy
Show the definition file used to build the image
$ apptainer inspect -d [path/to/image.sif]
copy
Show the runscript for the image
$ apptainer inspect -r [path/to/image.sif]
copy
Show the environment variables of the image
$ apptainer inspect -e [path/to/image.sif]
copy
List all apps in the container
$ apptainer inspect --list-apps [path/to/image.sif]
copy
Show all available data in JSON format
$ apptainer inspect --all [path/to/image.sif]
copy

SYNOPSIS

apptainer inspect [options] image.sif

DESCRIPTION

apptainer inspect displays metadata embedded in Apptainer container images. This includes labels, the definition file used to build the container, runscripts, environment settings, and information about bundled apps.
The metadata provides valuable information for understanding container provenance, reproducibility, and intended usage.

PARAMETERS

-d, --deffile

Display the definition file used to build the container
-r, --runscript
Display the container's runscript
-e, --environment
Display environment variables set in the container
--list-apps
List all SCIF apps installed in the container
--all
Display all available metadata
-j, --json
Output results in JSON format

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community