воскресенье, 30 октября 2016 г.

PyCharm 2016.2.3 and Docker for Windows

I just spent a couple of days trying to configure PyCharm to use remote python interpreter in Docker container. Since then, as docker team released native Docker for Windows, all instructions on how to use python interpreter inside Docker container in PyCharm became useless.
On Windows there is no more VirtualBox machine with Docker API on 192.168.x.x:2376 and there is no more Certificates folder. Almost all conversations about this problem ended up with conclusion, that Docker for Windows now using named pipe npipe:////./pipe/docker_engine for its API, but Java client for Docker, which uses PyCharm, doesn't support Windows named pipes. So it seems that we have no choice, but to use different kinds of messy workarounds. But finally I found simple solution on docker forums: https://forums.docker.com/t/how-to-find-the-remote-api/20988?u=akinfold

Just use http://localhost:2375 as API URL in PyCharm and leave Certificates folder field blank. :)

Комментариев нет:

Отправить комментарий