I'm trying to build a docker image, but whenever I run the app my connection to localhost gets refused.
The problem does not only occur with port 5000, but also with every else. I'm running the Docker Toolbox on Windows.
My command is :
docker run 5000:80 azure-text
When I curl or just do a docker run, the error message says "Failed to connect to localhost port 5000: Connection refused"
My Dockerfile:
FROM python:2.7-slim
WORKDIR /app_
COPY . /app_
RUN pip install --trusted-host pypi.python.og -r requirements.txt
EXPOSE 80
ENV NAME World
CMD ["python", "app.py"]
Would be happy about advice!