title: Can't access flask app which is inside docker container
body: <p>I can not request to my flask app inside docker container. It doesn't responding.</p>
  
  <p>there is my flask app file:</p>
  
  <pre><code>import json
  from flask import Flask, jsonify
  from flask import request
  
  from trained_model import predict
  app = Flask(__name__)
  
  @app.route("/", methods=['POST'])
  def main():
      res = []
  
      for obj in request.json:
          item = str(obj['item'])
          print item
          predicted = predict(item)
          print predicted
      res.append({'item': item, 'correct': predicted})
  
      return json.dumps({'results': res})
  
  if __name__ == "__main__":
      app.run(host='0.0.0.0')
  </code></pre>
  
  <p>there is my dockerfile:</p>
  
  <pre><code>FROM tensorflow/tensorflow
  
  # Create app directory
  RUN mkdir -p /usr/src/app
  WORKDIR /usr/src/app
  
  # Bundle app source
  COPY . /usr/src/app
  
  RUN sh docker_install.sh
  
  EXPOSE 5000
  ENTRYPOINT ["python"]
  CMD ["api.py"]
  </code></pre>
  
  <p>there is my docker run command:</p>
  
  <pre><code>sudo docker run -p 5000:5000 -d my-image
  </code></pre>
  
  <p>when I try to send post request it doesn't work.</p>