Reputation: 7963
I am using bamboo to run the python application(Flask app).
And successfully check out the source code from repository and created docker image using bamboo itself.
And tried to run the image using bamboo docker task got below Connection refused
error.
How do I solve this issue.
Failed connecting to http://localhost:5000, error: Connection refused (Connection refused)
Attempting connection to http://localhost:5000
Failed connecting to http://localhost:5000, error: Connection refused (Connection refused)
Attempting connection to http://localhost:5000
Failed connecting to http://localhost:5000, error: Connection refused (Connection refused)
Attempting connection to http://localhost:5000
Failed connecting to http://localhost:5000, error: Connection refused (Connection refused)
Attempting connection to http://localhost:5000
Failed connecting to http://localhost:5000, error: Connection refused (Connection refused)
Docker file:
FROM python
COPY . /app
WORKDIR /app
RUN pip install -r python_modules.txt
ENTRYPOINT ["python"]
CMD ["app.py"]
Upvotes: 1
Views: 381
Reputation: 856
Without seeing the docker file this looks as though the port is not open.
ENTRYPOINT python app.py
EXPOSE 5000
Upvotes: 1