title: Developing using PyCharm in Docker Container on AWS Instance
body: <p>I use PyCharm Professional to develop python.</p>
  
  <p>I am able to connect the PyCharm run/debugs GUI to local Docker image's python interpreter and run local code using the Docker Container python environment libraries, eg. via the procedure described here: <a href="https://www.jetbrains.com/help/pycharm/using-docker-as-a-remote-interpreter.html" rel="noreferrer">Configuring Remote Interpreter via Docker</a>.</p>
  
  <p>I am also able to SSH into AWS instances with PyCharm and connect to remote python interpreters there, which maps files from my local project into a remote directory and again allows me to run a GUI stepping through remote code as though it was local, eg. via the procedure described here: <a href="https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html" rel="noreferrer">Configuring Remote Interpreters via SSH</a>.</p>
  
  <p>I have a Docker image on Docker hub that I would like to deploy to an AWS instance, and then connect my local PyCharm GUI to the environment inside the remote container, but I can't see how to do this, can anybody help me?</p>
  
  <p>[EDIT] Once proposal that has been made is to put an SSH Server inside the remote container and connect my local PyCharm directly into the container via SSH, for example <a href="https://davidraleigh.github.io/2017/06/27/Debugging-a-Remote-Docker-Container-with-PyCharm.html" rel="noreferrer">as described here</a>. It's one solution but has been <a href="https://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/" rel="noreferrer">extensively criticised elsewhere</a> - is there a more canonical solution?</p>