title: Unable to Connect to Flask App On Docker From Host
body: <p>I've setup a docker ubuntu 14.04 image and I'm running it with the following command:</p>
  
  <p><code>docker run -d -p 5000:5000 ari/python3-flask</code></p>
  
  <p>The Dockerfile: </p>
  
  <pre><code>FROM ubuntu:14.04
  RUN apt-get update &amp;&amp; apt-get install -y python3 python3-pip
  ADD . /var/my_app
  RUN pip3 install -r /var/my_app/requirements.txt
  EXPOSE 5000
  CMD ["python3", "/var/my_app/runserver.py"]
  </code></pre>
  
  <p>However, if I attempt to curl the address (localhost:5000) or visit it in a browser I get a connection failed error. </p>
  
  <p>The docker log for the container shows:</p>
  
  <pre><code>Running on http://127.0.0.1:5000/
  
  Restarting with reloader
  </code></pre>
  
  <p>Does anyone what is or could be wrong with my docker setup and/or configuration? Thanks.</p>