Hi,
I have an Asp.Net Core 8 application which is working completely fine on local machine, but when it deployed on Docker container, the application is started correctly but when i access endpoint from chrome/postman i am getting “ERR_CONNECTION_REFUSED” error, could you please help me what am i missing.
docker file:
FROM mcr.microsoft.com/dotnet/aspnet:8.0-windowsservercore-ltsc2022
EXPOSE 44380
Launch Settings:
{
“profiles”: {
“GriffinApp1”: {
“commandName”: “Project”,
“launchBrowser”: true,
“environmentVariables”: {
“ASPNETCORE_ENVIRONMENT”: “Development”,
“DOTNET_RUNNING_IN_CONTAINER”: “true”,
“DOTNET_RUNNING_LOCAL”: “true”,
“CONFIG_PATH”: “appsettings.dev.json”,
“SECRETS_PATH”: “appsecrets.dev.json”,
“COSMIC_LOCATION”: “eastus2”,
“COSMIC_PODNAME”: “local-pod”,
“COSMIC_VERSION”: “0.0.0”,
“COSMIC_RING”: “DEV”,
“POD_IP”: “test”,
“LBProbePort”: “44380”
},
},
“Docker”: {
“commandName”: “Docker”,
“launchBrowser”: true,
“launchUrl”: “https : // localhost:44380/GriffinApp1/”,
“commandLineArgs”: “–no-secrets”,
“publishAllPorts”: true,
“useSSL”: true,
“DockerfileRunArguments”: “-p 44380:44380 -it”
}
}
}