title: Docker flask cant connect
body: <p>I am trying to do 
  <a href="http://containertutorials.com/docker-compose/flask-simple-app.html" rel="nofollow noreferrer">http://containertutorials.com/docker-compose/flask-simple-app.html</a></p>
  
  <p>I have copied the tutorial verbatim, except I changed</p>
  
  <pre><code>From flask import Flask
  </code></pre>
  
  <p>to </p>
  
  <pre><code>from flask import Flask
  </code></pre>
  
  <p>I can built it just fine.  I can start it and get the following when I run docker ps from the command line</p>
  
  <pre><code>CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS                    NAMES
  291c8dfe5ddb        whatever:latest     "python app.py"     About a minute ago   Up About a minute   0.0.0.0:5000-&gt;5000/tcp   sick_wozniak
  </code></pre>
  
  <p>I am building this on OSX</p>
  
  <p>I have tried the following</p>
  
  <ol>
  <li>Looking at this post <a href="https://stackoverflow.com/questions/30323224/deploying-a-minimal-flask-app-in-docker-server-connection-issues">Deploying a minimal flask app in docker - server connection issues</a></li>
  <li>Running $ python app.py to make sure it works without docker</li>
  <li>Creating a django project and a dockerfile for that project.  Then build, run and access.</li>
  </ol>
  
  <p>So I am confident that docker is working and flask is working independently of each other, but I cannot get them to work together.</p>