I have created a ASP.NET Core Web API app with Docker enabled just using the auto generated boilerplate code. Running on Docker on my Windows dev machine works just fine. But when I deploy the app to Docker running on Ubuntu, I'm not able to connect to the API. Doing a Docker ps shows that it is listening on port 8098 on the host. It is connected to the docker_default, just as my other containers which works. The port mapping, using docker -ps for the container is
0.0.0.0:8098->8080/tcp, :::8098->8080/tcp
Looking at the container logs, it listens to the 8080-port in the container:
Info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://[::]:8080
But when trying to connect to port 8098 I just get a 404. As far as I can tell, everything looks like it should, but it does just not work. Any suggestions on what to try next?