title: How can I forward localhost port on my container to localhost on my host?
body: <p>I have a daemon on my host running on some port (i.e. 8008) and my code normally interacts with the daemon by contacting localhost:8008 for instance.</p>
  
  <p>I've now containerized my code but not yet the daemon.
  How can I forward the localhost:8008 on my container to localhost:8008 on the host running the container (and therefore the daemon as well).</p>
  
  <p>The following is <code>netstat -tlnp</code> on my <strong>host</strong>. I'd like the <strong>container</strong> to forward localhost:2009 to localhost:2009 on the host</p>
  
  <pre><code>Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name            
  tcp        0      0 127.0.0.1:2009          0.0.0.0:*               LISTEN      22547/ssh       
  tcp6       0      0 :::22                   :::*                    LISTEN      -               
  tcp6       0      0 ::1:2009                :::*                    LISTEN      22547/ssh            
  </code></pre>