apptainer run
linux
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`.
More info →Options (3)
-B, --bindbooleanRun with a bind mount from host to container
Example:
apptainer run {{[-B|--bind]}} {{path/to/source}}:{{path/to/destination}} {{path/to/image.sif}}-C, --containallbooleanRun in fully isolated mode (contained filesystem, PID, IPC, and clean environment)
Example:
apptainer run {{[-C|--containall]}} {{path/to/image.sif}}-h, --helpbooleanDisplay help
Example:
apptainer run {{[-h|--help]}}Examples (8)
Run the default runscript of a container
apptainer run path/to/image.sifRun with arguments passed to the runscript
apptainer run path/to/image.sif arg1 arg2 ...Run with a bind mount from host to container
apptainer run [-B|--bind] path/to/source:path/to/destination path/to/image.sifRun with environment variables
apptainer run --env variable=value path/to/image.sifRun in fully isolated mode (contained filesystem, PID, IPC, and clean environment)
apptainer run [-C|--containall] path/to/image.sifRun with a writable temporary filesystem overlay
apptainer run --writable-tmpfs path/to/image.sifRun with NVIDIA GPU support
apptainer run --nv path/to/image.sifDisplay help
apptainer run [-h|--help]made by @shridhargupta | data from tldr-pages