title: Connect with filezilla to docker container
body: <p>I am running docker containers on Google Cloud virtual machine. I am trying for hours to connect from filezilla on my local computer to an running docker container. I have started docker image like this:</p>
  
  <pre><code>docker run -t -d --name test -p 2222:22 --link postgres7:postgres7 random_image /bin/bash
  </code></pre>
  
  <p>In my filezilla connection configuration I have set:<br/><br/>
  Host: Google Cloud IP address<br/>
  Port: 2222<br/>
  Protocol: SFTP<br/>
  Logon Type: Normal<br/>
  User: root (without password)<br/></p>
  
  <p>When trying to connect I get this error:</p>
  
  <pre><code>Status: Connecting to x.x.x.x:2222...
  Response:   fzSftp started
  Command:    open "root@x.x.x.x" 2222
  Error:  Connection refused
  Error:  Could not connect to server
  </code></pre>
  
  <p>I have opened ports on google cloud engine.</p>