SPM and Containers¶
What is Docker?
Docker is a container technology, performing operating-system-level virtualisation.
What is Singularity?
Singularity is another container technology that performs operating-system-level virtualization. One of the main uses of Singularity is to bring containers and reproducibility to scientific computing and HPC.
https://sylabs.io/singularity/
https://apptainer.org/
SPM Containers¶
Official SPM Dockerfile
(using the Standalone SPM) with the docker images hosted on the GitHub container registry
For example, to start SPM with its graphical user interface:
xhost +local:docker
docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp:/tmp -v /tmp/.X11-unix:/tmp/.X11-unix ghcr.io/spm/spm-docker:docker-matlab-latest fmri
If the container's root filesystem is mounted as read only (--read-only flag), you need to bind mount an extra volume:
Singularity¶
singularity pull oras://ghcr.io/spm/spm-docker:singularity-matlab-latest
singularity run spm-docker_singularity-matlab-latest.sif --version
(how to install singularity on Ubuntu)
See also¶
Neurodesk¶
Neurodocker¶
https://github.com/ReproNim/neurodocker
https://hub.docker.com/r/repronim/neurodocker
SPM BIDS-App¶
https://github.com/BIDS-Apps/SPM
https://hub.docker.com/r/bids/spm/