Your root user will have a different PATH than your own user, so fmriprep-docker will not show up to the root user. You can try:
sudo `which fmriprep-docker` ...
But that may not have the right PYTHONPATH environment to work with. The better solution is to give your user permission to run Docker images. See @oesteban’s comment here: