Python docker-compose interpreter in Pycharm: Couldn't find docker binary

我是研究僧i 提交于 2019-12-23 11:53:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!