-
Notifications
You must be signed in to change notification settings - Fork 1
Installing SPM12 (dockerised)
Sriranga Kashyap edited this page Oct 29, 2020
·
1 revision
docker pull spmcentral/spm
-
Obtain the Dockerfile
curl -f https://raw.githubusercontent.com/spm/spm-docker/master/matlab/Dockerfile -o Dockerfile
-
Build it
docker build -t spm12 .
-
Open the xhost to docker
xhost +local:docker
-
To call spm fmri from docker
docker run -ti --rm -e DISPLAY=$DISPLAY -v $PWD:/data -v /tmp:/tmp -v /tmp/.X11-unix:/tmp/.X11-unix spm12 fmri
-
Create a bash alias called
spm_gui
😏 -
Add to bash profile
echo 'alias spm_gui="docker run -ti --rm -e DISPLAY=$DISPLAY -v /$PWD:/data -v /tmp:/tmp -v /tmp/.X11-unix:/tmp/.X11-unix spm12 fmri"' >> ~/.bashrc
-
Open a new terminal and run
spm_gui
🤓