0

I have set up a Flask API to try and host my TensorFlow model online which I'm using for a mobile app - I have created a docker image with all of the correct imports and whenever I run the docker container the terminal shows this but I can't see it on these URLs:

1 Answer 1

1

Your application is listening on port 5000. The second docker run -p port number must match this port. The two port numbers don't need to match each other. So, to map port 5001 on the host to port 5000 in the container, you'd use

#             host port (your choice)
#                vvvv
docker run -d -p 5001:5000 nea-api
#                     ^^^^
#               container port (matches server process's port)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.