I have been going in circles the past week trying to get fmriprep to run. I am using the following code (using PowerShell):
docker run -ti --rm
-v "D:/Box Sync/cclab_Paul_Scotti/ContIEM_Box/bids/Nifti:/data:ro"
-v “D:/Box Sync/cclab_Paul_Scotti/ContIEM_Box/bids/fmriprep:/out”-v "D:/Box Sync/cclab_Paul_Scotti/ContIEM_Box/license.txt:/opt/freesurfer/license.txt"
-v “D:/DockerWorkDir”-w "D:/DockerWorkDir"
poldracklab/fmriprep:latest/data /out/out
participant --participant_label 101
I immediately get the error
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: the working directory ‘D:/DockerWorkDir’ is invalid, it needs to be an absolute path.
See ‘C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help’.
But I don’t understand this, since ‘D:/DockerWorkDir’ is an absolute path? I’ve been going in circles trying to solve this using Google, including making a junction between my C:/ProgramData and D:/ProgramData and changing my Hyper-V settings to be in my D: drive.
If I remove “D:” from the two instances of “D:/DockerWorkDir” in my code, then it will run through everything but eventually error. Nothing ever gets saved into the DockerWorkDir using this method so I feel like something I’m doing is very wrong.
Any help is appreciated, thanks!