All materials (c) 2020-2025 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/
--fakeroot option--nvsinteractiveapptainer 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_wrapperapptainer_wrapper takes care of the most common --bind commands automatically$SING_IMAGE environment variable to point to the correct Apptainer image file$SING_FLAGS,export SING_FLAGS=--nvapptainer build <image> docker://<address>:<tag>apptainer build pytorch_19.10-py3.sif docker://nvcr.io/nvidia/pytorch:19.10-py3--post-install <file> to run the installation commands