问题
I am trying to configure the remote python docker-compose interpreter in PyCharm Professional. I am able to run a small project (https://blog.jetbrains.com/pycharm/2017/03/docker-compose-getting-flask-up-and-running/#comment-370730) from the docker container. But when I try to configure it for debugging, setting up of remote interpreter gives me an error saying that docker binary couldn't be found and tells me to install docker.
docker binary error
Has anyone encountered this issue before?
Thanks in advance.
回答1:
I hit this same issue, from a Mac. I was able to work around it by opening Pycharm from the terminal.
You can do so by running: /Applications/PyCharm CE.app/Contents/MacOS/pycharm
Then try configuring the docker-compose interpreter again.
This seems to be an open bug in Pycharm. https://youtrack.jetbrains.com/issue/PY-31727
来源:https://stackoverflow.com/questions/52892301/python-docker-compose-interpreter-in-pycharm-couldnt-find-docker-binary