microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.19k stars 508 forks source link

Connection rejected error when trying to debug aspnet core docker container on Ubuntu #4175

Closed wgrs closed 7 months ago

wgrs commented 7 months ago

Because running tests is currently broken on vscode in .Net 8, I am trying to debug a webapi app thats running in a docker container. I am using REST Client. When I send a http POST request, I keep getting the error that the connection was rejected because the ports proxy setting in vscode are misconfigured. The port the REST client is calling is 5200 and that matches the ports specified in the docker-compose and dockerfile. Is there something else the docs are missing?

Is this is known issue?

bwateratmsft commented 7 months ago

Can you share your Dockerfile, .vscode/tasks.json and .vscode/launch.json?

wgrs commented 7 months ago

Sorry, config issue.