community man page

apptainer-shell

GNU

Start an interactive shell within an Apptainer container. See also: `apptainer exec`, `apptainer run`.

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-shell
same page, in your terminal

Examples

Start an interactive shell inside a container GNU

apptainer shell path/to/image.sif

Start a shell with a bind mount from host to container GNU

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

Start a shell with environment variables GNU

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

Start a shell in fully isolated mode (contained filesystem, PID, IPC, and clean environment) GNU

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

Start a shell with a writable temporary filesystem overlay GNU

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

Start a shell with NVIDIA GPU support GNU

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

Start a shell using a specific shell program GNU

apptainer shell [-s|--shell] path/to/shell path/to/image.sif

Display help GNU

apptainer shell [-h|--help]