user1700890
user1700890

Reputation: 7730

Plumber in container on Azure how to map ports

I build container with plumber API inside. It runs on port 80 in container and I also exposed port 80. I also mapped ports

az container create ... --ports 80:80

Since Azure only support symmetrical port mapping.

But I still cannot reach my API from container FQDN and I do not know how to troubleshoot. I already confirmed that API is running fine within the container with curl command.

Any suggestions.

Upvotes: 0

Views: 125

Answers (1)

Bruno Tremblay
Bruno Tremblay

Reputation: 776

did you run your plumber server with host 0.0.0.0?

Take a look at plumber official Docker image

https://github.com/rstudio/plumber/blob/master/Dockerfile

Upvotes: 1

Related Questions