Can I use a different port in Azure Container instances for public access?

76 Views Asked by At

I'm using Azure Container instances. I've created a container with the 5000 port exposed. To create a container, I used: az container create ... --ports 5000 and I exposed port 5000 in my docker file.

I checked the logs, and it showed me:

"Not listening on: http:/[::]5000"

But when I tried to access it from the internet via domain or IP address, I got only a standard error: HTTP ERROR 404.

I have no firewall.

Does Azure support this use case? Thanks.

0

There are 0 best solutions below