apptainer shell
linux
Start an interactive shell within an Apptainer container. See also: `apptainer exec`, `apptainer run`.
More info →Options (4)
-B, --bindbooleanStart a shell with a bind mount from host to container
Example:
apptainer shell {{[-B|--bind]}} {{path/to/source}}:{{path/to/destination}} {{path/to/image.sif}}-C, --containallbooleanStart a shell in fully isolated mode (contained filesystem, PID, IPC, and clean environment)
Example:
apptainer shell {{[-C|--containall]}} {{path/to/image.sif}}-s, --shellbooleanStart a shell using a specific shell program
Example:
apptainer shell {{[-s|--shell]}} {{path/to/shell}} {{path/to/image.sif}}-h, --helpbooleanDisplay help
Example:
apptainer shell {{[-h|--help]}}Examples (8)
Start an interactive shell inside a container
apptainer shell path/to/image.sifStart a shell with a bind mount from host to container
apptainer shell [-B|--bind] path/to/source:path/to/destination path/to/image.sifStart a shell with environment variables
apptainer shell --env variable=value path/to/image.sifStart a shell in fully isolated mode (contained filesystem, PID, IPC, and clean environment)
apptainer shell [-C|--containall] path/to/image.sifStart a shell with a writable temporary filesystem overlay
apptainer shell --writable-tmpfs path/to/image.sifStart a shell with NVIDIA GPU support
apptainer shell --nv path/to/image.sifStart a shell using a specific shell program
apptainer shell [-s|--shell] path/to/shell path/to/image.sifDisplay help
apptainer shell [-h|--help]made by @shridhargupta | data from tldr-pages