Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a Docker image in PyCharm causes "Invalid volume specification"

I am trying to run a project based on a Docker Image (Tensorflow, following instructions from this tutorial) as described in this blog. The Docker is running fine, but I'm unable to import it in PyCharm (professional, does not work in community version). I get the following error message:

Error running main: Can't run remote python interpreter: {"message":"Invalid bind mount spec \"C:/Path-to-project/Project-name:/opt/project:rw\": Invalid volume specification: 'C:/Path-to-project/Project-name:/opt/project:rw'"}

How to solve this?

like image 931
Guido Avatar asked Aug 31 '25 18:08

Guido


1 Answers

This is a Windows Linux path problem. To solve it, change project paths to the Docker file to /c/Path-to-project/Project-name (with a lower case c and forward slashes) in order to solve this problem. Inspired by this link.

like image 64
Guido Avatar answered Sep 02 '25 08:09

Guido