Apptainer / Singularity

If you don’t have admin access to your local computer, or you simply prefer it, you can use Apptainer instead (formerly known as Singularity). You still need admin access to install Apptainer, or a willing sysadmin to do it for you.1

To download the container and convert it to Apptainer’s .sif format:

apptainer pull docker://wgseligman/jupyter-pyroot

After some processing, you’ll have the image file jupyter-pyroot_latest.sif. Then you can run Apptainer on that container:

apptainer run --bind=$PWD:/work jupyter-pyroot_latest.sif

Note that while you can change the mapping of the /work directory within the container (see the Docker instructions above), you can’t change Jupyter’s binding to port 8080. This might be a problem if you’re running on a shared computer system and more than one user wants to run this container at the same time.

xkcd singularity

Figure 78: https://xkcd.com/1668/ by Randall Munroe


1

Apptainer/Singularity is already installed on all the systems in the Nevis particle-physics Linux cluster.