How do I configure PyCharm to work with a remote docker image?
My setup is as follows:
Local Machine- OS X, running PyCharm Professional 2018.2.4.
Remote machine- VPS running Fedora 26, docker 1.13.1, with remote API exposed on port 2376.
I have a copy of my codebase on both machines. On the remote machine, it runs in a python docker container (it is a django project). Now I am trying to configure the docker image on the remote VPS as a remote interpreter. I have done the following:
Preferences --> Project Interpreter --> Add Python Interpreter --> Docker
On this screen, I created a new Docker, and set it to connect via TCP socket. For the Engine API URL, I used "https://mydomain.com:2376" and supplied my cert/key directory. Upon doing this, I see all of my remote docker images under the Image Name dropdown in the Add Python Interpreter dialog, so I know the connection/cert/key is set up properly. However, when I click "OK" the "Get remote interpreter version" dialog that pops up gives me an error that "repository docker.io/pycharm_helpers not found: does not exist or no pull access" Some googling has yielded suggestions to uninstall the pycharm_helpers image from docker, however docker doesn't have any pycharm_helpers image to uninstall. I am not exactly sure how to proceed from this point. Thoughts?
Please sign in to leave a comment.
Please try 2018.3 version of PyCharm, it has some relevant fixes. If doesn't help, upload your logs folder zipped (Help | Compress Logs and Show in...) to https://uploads.services.jetbrains.com/ and let me know the name of that zip file.