Docker Community Forums

Share and learn in the Docker community.

Access container on vps

Hi
Im running ubuntu on vps.
Ufw disabled
Created a temp .net core app and dockerized it.
I run the container (on the vps):
docker run -it -d --name someName -p 8080:80 path/image

I can access api by
curl http://localhost:8080/WeatherForecast
curl 172.x.x.x:80/WeatherForecast

But not with vps ip
http://[vps_ip]:8080/WeatherForecast

I will host multiple .net core apps so I guess I need to read up on nginx reverse proxy.
But before that I would like to understand why this doesent work:
http://[vps_ip]:8080/WeatherForecast

Opened ports on vps side. Case closed