All materials (c) 2020-2023 by CSC – IT Center for Science Ltd. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License, http://creativecommons.org/licenses/by-sa/4.0/
--nv
sinteractive
apptainer exec [exec options...] <container> <command>
apptainer run [run options...] <container>
apptainer shell [shell options...] <container>
/scratch/project_2001234
to the /data
directory inside the container: --bind /scratch/project_2001234:/data
--cleanenv
$APPTAINERENV_variablename
.
$TEST
in a container, set $APPTAINERENV_TEST
on the hostapptainer_wrapper
apptainer_wrapper
takes care of the most common --bind
commands automatically$SING_IMAGE
environment variable to point to the correct Apptainer image file$SING_IMAGE
is set, the image file name is not needed in the apptainer_wrapper
commandapptainer build <image> docker://<address>:<tag>
apptainer build pytorch_19.10-py3.sif docker://nvcr.io/nvidia/pytorch:19.10-py3
‼️ Requires root access: Can not be done directly on, e.g., Puhti
--sandbox
)apt install
,s yum install
etc.)