Cannot run code on a remote Docker

I failed to run my code with a docker interpreter on a remote host.

I showed my configurations below.

But Pycharm report error like "can't open file '/opt/project/main.py' ".

But I run the docker container on the remote using the "Docker container settings" in pycharm, It works.

I found when I run through pycharm, the generated container has a wrong volume binding. I wrote `/home/...` but got `/d/home/...`, that resulted in "can't open file" error.

1
1 comment

Hello, 

 

It seems like according to the setup description you are facing the following issue https://youtrack.jetbrains.com/issue/PY-33489/Native-support-for-running-Docker-on-the-remote-machine . Please try the workaround provided, as currently there is no native support for the remote services. 

 

 

0

Please sign in to leave a comment.