I've setup a docker ubuntu 14.04 image and I'm running it with the following command:
docker run -d -p 5000:5000 ari/python3-flask
The Dockerfile:
FROM ubuntu:14.04
RUN apt-get update && 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"]
However, if I attempt to curl the address (localhost:5000) or visit it in a browser I get a connection failed error.
The docker log for the container shows:
Running on http://127.0.0.1:5000/
Restarting with reloader
Does anyone what is or could be wrong with my docker setup and/or configuration? Thanks.