← 返回命令列表

Linux command

apptainer-inspect 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

apptainer inspect [path/to/image.sif]

Example

apptainer inspect -d [path/to/image.sif]

Example

apptainer inspect -r [path/to/image.sif]

Example

apptainer inspect -e [path/to/image.sif]

Example

apptainer inspect -s [path/to/image.sif]

Example

apptainer inspect --app [app_name] [path/to/image.sif]

List all apps

apptainer inspect --list-apps [path/to/image.sif]

Example

apptainer inspect --all [path/to/image.sif]

说明

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.

参数

-l, --labels
Show the labels for the image (default behavior)
-d, --deffile
Display the definition file used to build the container
-r, --runscript
Display the container's runscript
-s, --startscript
Display the startscript for the image
-t, --test
Display the test script for the image
-e, --environment
Display environment variables set in the container
-H, --helpfile
Display the runscript helpfile, if it exists
--app _name_
Inspect a specific SCIF application within the container
--list-apps
List all SCIF apps installed in the container
--all
Display all available metadata (implies --json)
-j, --json
Output results in JSON format

FAQ

What is the apptainer-inspect command used for?

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.

How do I run a basic apptainer-inspect example?

Run `apptainer inspect [path/to/image.sif]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --labels do in apptainer-inspect?

Show the labels for the image (default behavior)