Skip to content
Discussion options

You must be logged in to vote

Not sure if you ever got this sorted, but this will be due to the Docker port mappings.

When running the docker run command;

-p "127.0.0.1:5000:5000" will bind to port 5000 on localhost on the host, so it will only be accessible from the same machine.
This is good to use if you have a reverse proxy running on the same machine.

-p "0.0.0.0:5000:5000" or just "5000:5000" will bind to any IP on the host, and will therefore be accessible from other machines when visiting, per your example, 192.168.0.100:5000.

The same goes for if you're using docker-compose.

Regarding the logs, same as above, the 0.0.0.0 just means it will be listening on any IP address, port 5000. That's fine, because that i…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Darren-Hill
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants