title: Connect Spyder to a console in a docker container on a remote host
body: <p>I am using a docker on a remote AWS EC2 instance to run my code. My current workflow is to edit code on a local machine, push it to git and then log into the EC2 machine and the docker container in it, to pull the code and run it. I was wondering if I could somehow attach Spyder's console to the kernel inside the docker, in the EC2 instance. </p>
  
  <p>So my sequence of log-ins are:</p>
  
  <p><code>localhost~:  ssh -XYA remote-ec2.domain.ext
  remote-ec2~: ssh -XYA root@localhost -p 2222
  (docker)~: python runme.py
  </code></p>
  
  <p>I found a tutorial to <a href="http://docs.spyder-ide.org/ipythonconsole.html#connect-to-an-external-kernel" rel="nofollow noreferrer">use an SSH</a> connected kernel, but I am wondering how to tunnel through to the docker inside. </p>