Problem with launching swagger for Docker container #55443
Unanswered
PistonShot1
asked this question in
Q&A
Replies: 0 comments 5 replies
-
Also , I forgot to mention that I am getting this warning when routing to any of the endpoints
I suspect it may be due to this warning as well , but I did look into it and modified still result in this warning. If you could point me to resolve this might resolve the issue above |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have build image and run a docker container locally. I mapped it to port 8000 to my local.
But when I make http request to ./swagger doesn't work , but I could direct to the endpoint
i.e :
http://localhost:8000/WeatherForecast
, works and sends responsehttp://localhost:8000/swagger/index.html
does not workTo setup the dockerfile and other I used
docker init
.Here is the relevant , Dockerfile for your reference
I am quite new to .NET envrionment, perhaps it might be any configuration errors on my side, but running with
dotnet run
without container builds works fine for all endpoints including swagger endpoints. Do let me know if you suspect anything.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions