Container Apps: My application can not bind on port 80 inside container

Manish Vishnoï 21 Reputation points
2024-02-09T17:09:08.93+00:00

My application is trying to bind on port 80 and 443 inside the container but getting following error :- (13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 Have gone through some articles suggesting to create to change the application listening port inside container(non privileged port > 1024) . Is these any way i can make it work with port 80 ?

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
419 questions
{count} votes

Accepted answer
  1. Sedat SALMAN 13,825 Reputation points
    2024-02-12T07:33:14.6366667+00:00

    the ports 80,443 is already used by Azure container app so you need to select another port

    and you can use a reverse proxy like Nginx or HAProxy in front of your application or use Azure's networking features to route external traffic from ports 80 and 443 to these higher ports

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.