community man page

apptainer-run

GNU

Run the default runscript of an Apptainer container. The runscript is defined in the `%runscript` section of the container's definition file. See also: `apptainer exec`, `apptainer shell`.

8 examples·source: tldr · CC-BY·status: verified
Reading is open to everyone. Suggesting a flag, fixing an example or adding a recipe is opening to verified-email accounts soon — every change is moderated before it goes live.
curl https://curlhub.sh/man/apptainer-run
same page, in your terminal

Examples

Run the default runscript of a container GNU

apptainer run path/to/image.sif

Run with arguments passed to the runscript GNU

apptainer run path/to/image.sif arg1 arg2 ...

Run with a bind mount from host to container GNU

apptainer run [-B|--bind] path/to/source:path/to/destination path/to/image.sif

Run with environment variables GNU

apptainer run --env variable=value path/to/image.sif

Run in fully isolated mode (contained filesystem, PID, IPC, and clean environment) GNU

apptainer run [-C|--containall] path/to/image.sif

Run with a writable temporary filesystem overlay GNU

apptainer run --writable-tmpfs path/to/image.sif

Run with NVIDIA GPU support GNU

apptainer run --nv path/to/image.sif

Display help GNU

apptainer run [-h|--help]