💬 Building containers from scratch requires root privileges, so it can not be done on Puhti.
apptainer run shub://vsoch/hello-world:latest
apptainer pull shub://vsoch/hello-world:latest apptainer run hello-world_latest.sif
💬 Docker images are downloaded as layers. These layers are stored in a cache directory.
$SINGULARITY_CACHEto point to some other location with more space.
export APPTAINER_TMPDIR=/scratch/<project>/$USER # replace <project> with your CSC project, e.g. project_2001234 export APPTAINER_CACHEDIR=/scratch/<project>/$USER # replace <project> with your CSC project, e.g. project_2001234
export APPTAINER_TMPDIR=$LOCAL_SCRATCH export APPTAINER_CACHEDIR=$LOCAL_SCRATCH
apptainer build alpine.sif docker://library/alpine:latest
💡 You can find more detailed instructions on converting Docker containers in Docs CSC.
‼️ To do this you will need access to a system where you have root privileges and that has Apptainer installed.
💬 This tutorial is meant as a brief introduction to get you started.
☝🏻 When searching online for instructions, pay attention that the instructions are for the same version of Apptainer as you are using. There has been some command syntax changes etc. between versions so older instructions may not work as copy/paste. Also note that Apptainer is formerly known as Singularity.
💡 For more detailed instructions, see the Apptainer documentation.