Closed rrafay closed 3 months ago
Typo in Dockerfile. Change CMD python3 -m flask run --host=0.0.0.0 --host=8001
to CMD python3 -m flask run --host=0.0.0.0 --port=8001
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
/lifecycle locked
Is this a docs issue?
Type of issue
Other
Description
The documentation for Python states that
docker compose up --build
should yield a successful response, however I am getting the error: Cannot assign requested address. Postgres container runs successfully but the other container shuts down after staring.The log of the error is:
I have confirmed that both port 8001 and 5432 are not in use.
My yaml file and Dockerfile looks like this:
yaml
Dockerfile
Thanks.
Location
https://docs.docker.com/language/python/develop/
Suggestion
No response