Fmriprep_docker and network drives

Hi

I am fairly new to docker and I have been successful in getting fmriprep working using docker (for Windows, but using linux containers). However, I can only run if my files are local, as my docker doesn’t recognize my mounted network drives.

docker run -ti –rm -v C:/data_dir:/data:ro
-v C:/out_dir:/out
-v freesurfer_license_path:/opt/freesurfer/license.txt
poldracklab/fmriprep:latest /data /out participant
–fs-license-file /opt/freesurfer/license.txt

It works beautifully if the files are local, however if I use the network paths, Docker pop asks me if I want to share and i log in using my computer credentials, but then I get error from Daemon: an error occurred while sharing drive.

I have spent a day trying to find solutions online, but have failed miserably. Does anyone have any suggestions and/or come across a similar issue?

Any advice would be super helpful!

Thanks
Poornima

This seems like a generic issue related to Docker. I do not know the solution, but seeking help in a broader forum such as https://github.com/docker/for-win/issues might help.

1 Like

Hi Chris

Thanks for your reply. Yes, I agree this might be a generic Docker issue. But the reason that I posted here was because I was hoping someone in this group would have had to use Docker (locally) and data on their cluster/server and can shed some light into my problem.

Thanks very much
Poornima

Doesn’t hurt! I hope you’ll find a solution.

Hi @ak_poorni did you find a solution to this problem? I am having the same issue with network drives…I am running fmriprep on datasets that are too large to copy the data locally.

@being_saige - No, I never did. I am just running fmriprep directly on the cluster now.

Maybe this could be helpful - https://forums.docker.com/t/how-to-access-a-windows-network-share/47467/2