MAX-Text-Sentiment-Classifier
MAX-Text-Sentiment-Classifier copied to clipboard
How to change the port 5000 (Deploy with docker)
Hi, It would be appreciated if you can let me know how i can use different port then 5000. I tried to change it but its only work with 5000 Port
Steps I took I ran the docker command with different port I Updated the dockerfile to expose 5001 not workrd
I have build the images locally with specifying another port
None of above working.
Look forward to hear from you.
Thanks, Sk
Have you tried passing -p 5001:5000
to docker run
?
docker run -it -p 5001:5000 codait/max-text-sentiment-classifier
Hi,
Thanks for your reply. I tried above but the app still running with port 5000
This is what's happening in the container. The app still opens Port 5000, but Port 5000 in the container has now been mapped to Port 5001 on the host. If you try to connect to localhost:5001
from your host, it should work.
Are you using Autofact? I had the same problem and noticed that it was caused by Autofact component. .UseServiceProviderFactory(new AutofacServiceProviderFactory())