Dear experts,
I’m an amateur when it comes to docker, I haven’t had much experience so please excuse me.
I have been trying to install FreeSurfer on my local Windows computer for a while, after failing to run this through a virtual machine I’m trying my luck through the docker version.
As you know, FreeSurfer will not work without a license so when I just run:
docker run freesurfer/freesurfer:7.3.1 mri_convert [input file] [output file]
it gives me the following error (and rightly so):
ERROR: FreeSurfer license file /usr/local/freesurfer/.license not found.
If you are outside the NMR-Martinos Center,
go to http://surfer.nmr.mgh.harvard.edu/registration.html to
get a valid license file (it's free).
If you are inside the NMR-Martinos Center,
make sure to source the standard environment.
A path to an alternative license file can also be
specified with the FS_LICENSE environmental variable.
I have followed the instructions here and here to mount the license file but for some reason, I keep getting this error.
docker run -it --rm \ -v .\license.txt:/license.txt:ro \ -e FS_LICENSE=.\license.txt \ freesurfer/freesurfer:7.3.1 \ mri_convert [input .nii file] [output .mgz file]
docker: invalid reference format.
See 'docker run --help'.
I know this is probably very intuitive but I would appreciate it if someone could tell me what I’m doing wrong. All the posts on here relating to freesurfer and license issues on docker point to fMRIprep which I’m not using. This is just the standard Freesurfer docker.
Any help is appreciated.
Thank you.