pycharm can't complete remote interpreter setup for Docker
<p>I'm new to Docker. I'm using Docker &amp; docker-compose, going through a flask tutorial. The base docker image is python 2.7 slim. 
It's running on Linux. docker 1.11.2
The application is working fine. 
I want to get pycharm pro connecting to the remote interpreter, something I have never done before. </p>

<p>I followed the instructions for docker-compose. Initially it was failing because it could not connect to port 2376. I added this port to docker-compose.yml and the error went away. 
However, trying to save the configuration now stalls/hangs with a dialog 'Getting Remote Interpreter Version'. This never completes. Also, I can't quit pycharm. This happens in Pycharm 2016.2 and 2016.3 EAP (2nd). </p>

<p>The help say "SFTP support is required for copying helpers to the server". 
Does this mean I need to do something? </p>

<p><strong>I - docker-compose up</strong></p>

<p>I think PyCharm will run <code>docker-compose up</code>, have you try to run this command first in your terminal (from where your <code>docker-compose.yml</code> is) ?</p>

<p>Maybe if some errors occur, you will get more info in your terminal.</p>

<p><strong>II - pycharm docker configuration</strong></p>

<p>Otherwise it could be due to your docker machine configuration in PyCharm.</p>

<p>What I do to configure my machine and to be sure this one is correctly configured:</p>

<p>1 - run <code>docker-machine ls</code> in your shell</p>

<p><a href="http://i.stack.imgur.com/J8Lca.png" rel="nofollow"><img src="http://i.stack.imgur.com/J8Lca.png" alt="enter image description here"></a></p>

<p>2 - copy paste the url without <code>tcp://</code></p>

<p>3 - go to pycharm preferences -> <code>Build, Execution, Deployement</code> -> <code>Docker</code> -> <code>+</code> to create a new server, fill the server <code>name</code> field</p>

<p><a href="http://i.stack.imgur.com/jd8KW.png" rel="nofollow"><img src="http://i.stack.imgur.com/jd8KW.png" alt="enter image description here"></a></p>

<p>4 - paste previously copied url keeping <code>https://</code></p>

<p>5 - fill the path of your machine certificates folder</p>

<p>6 - tick <code>Import credentials from Docker Machine</code></p>

<p>7 - click <code>Detect</code> -> your machine should appear in the selection list</p>

<p>8 - save this server</p>

<p>9 - select this server when configuring your remote interpreter, from PyCharm Preferences -> <code>Project</code> -> <code>Project Interpreter</code> -> <code>wheel</code> -> <code>add remote</code> -> <code>Docker</code> or <code>Docker Compose</code></p>

<p><a href="http://i.stack.imgur.com/CIzKN.png" rel="nofollow"><img src="http://i.stack.imgur.com/CIzKN.png" alt="enter image description here"></a></p>

<p>10 - you should be able to select a service name</p>

<p>11 - save your new interpreter</p>

<p>11 - try run your test twice, sometimes it could take time to initialize</p>

python docker pycharm