apptainer(1)

πŸ’– apptainer(1) β€” the inspect glow-up πŸ’–

okay so real quick before we dive in: this page lives in the apptainer(1) manual fam, and it's all about one iconic little subcommand. grab a snack, bestie, we're getting into it 🫢


✨ NAME ✨

apptainer-inspect β€” literally just shows you the metadata for an image. that's the whole vibe check πŸ“‹


🌸 SYNOPSIS 🌸

apptainer inspect [inspect options...]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so inspect is gonna show you the labels, the environment variables, the apps, and the scripts that are associated with whatever image you're poking at β€” and which image that is? determined by the flags you pass, no cap ✨

by default, all of this comes out in plain text, super chill, very readable. but if you'd rather have it in json format, you should use the --json flag. that's it, that's the whole thing πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • --all[=false] β€” shows all the available data (imply --json option) πŸ‘‘
  • --app="" β€” inspect one specific app, like your fave
  • -d, --deffile[=false] β€” shows the Apptainer definition file that was used to generate the image πŸ“œ
  • -e, --environment[=false] β€” shows the environment settings for the image 🌱
  • -h, --help[=false] β€” help for inspect (the classic)
  • -H, --helpfile[=false] β€” inspects the runscript helpfile, if it exists
  • -j, --json[=false] β€” prints structured json instead of sections 🧚
  • -l, --labels[=false] β€” shows the labels for the image (this one's the default, iykyk) 🏷️
  • --list-apps[=false] β€” lists all the apps in a container
  • -r, --runscript[=false] β€” shows the runscript for the image
  • -s, --startscript[=false] β€” shows the startscript for the image
  • -t, --test[=false] β€” shows the test script for the image

🌈 EXAMPLE 🌈

okay here's the moment you've been waiting for, the live demos πŸ’–

$ apptainer inspect ubuntu.sif

if you want to list the applications (apps) installed in a container (they live at /scif/apps), you should run the inspect command with the --list-apps <container-image> flag. (peep https://sci-f.github.io for more info on SCIF apps, fr fr)

so when you're called from the shell inside the container, the following environment variables are available to you. the top ones are relevant to the active app (--app <app>), and the bottom ones are available for all apps regardless of which app is active. and guess what β€” both sets are also available during development (at build time) ⭐

ACTIVE APP ENVIRONMENT:

  • SCIF_APPNAME β€” the name for the active application
  • SCIF_APPROOT β€” the installation folder for the application created at /scif/apps/<app>
  • SCIF_APPMETA β€” the application metadata folder
  • SCIF_APPDATA β€” the data folder created for the application at /scif/data/<app>
    • SCIF_APPINPUT β€” expected input folder within data base folder
    • SCIF_APPOUTPUT β€” the output data folder within data base folder
  • SCIF_APPENV β€” points to the application's custom environment.sh file in its metadata folder
  • SCIF_APPLABELS β€” is the application's labels.json in the metadata folder
  • SCIF_APPBIN β€” is the bin folder for the app, which is automatically added to the $PATH when the app is active
  • SCIF_APPLIB β€” is the application's library folder that is added to the LD_LIBRARY_PATH
  • SCIF_APPRUN β€” is the runscript
  • SCIF_APPSTART β€” is the startscript
  • SCIF_APPHELP β€” is the help file for the runscript
  • SCIF_APPTEST β€” is the testing script (test.sh) associated with the application
  • SCIF_APPNAME β€” the name for the active application
  • SCIF_APPFILES β€” the files section associated with the application that are added to

GLOBAL APP ENVIRONMENT:

  • SCIF_DATA β€” scif defined data base for all apps (/scif/data)
  • SCIF_APPS β€” scif defined install bases for all apps (/scif/apps)
  • SCIF_APPROOT_<app> β€” root for application <app>
  • SCIF_APPDATA_<app> β€” data root for application <app>

and to list ALL your apps:

$ apptainer inspect --list-apps ubuntu.sif

to list only the labels, in the json format, from an image:

$ apptainer inspect --json --labels ubuntu.sif

and to verify you own a single application on your container image, use the --app <appname> flag:

$ apptainer inspect --app <appname> ubuntu.sif

🐚 SEE ALSO 🐚


πŸ’œ HISTORY πŸ’œ

22-Oct-2026 β€” Auto generated by spf13/cobra πŸ€–


okay that's the whole page, go forth and inspect bestie πŸ’…βœ¨ β€” this was the Oct 2026 drop of the apptainer(1) manual, Auto generated by spf13/cobra, mwah πŸŽ€

πŸ“¦ where this page comes from
  • epel 9: apptainer 1.5.5-1.el9 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-LBNL AND ISC AND MIT AND MPL-2.0 AND Unlicense
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms