Ports are not available: exposing port TCP 0.0.0.0:80 -> 0.0.0.0:0: listen tcp 0.0.0.0:80: bind: permission denied

Hi,

I am trying to move my workpress instance into docker but I am having the following problem starting ngix.

From what i can see i don’t have anything running on port 80

Error Message

╰▮~/Documents/dev/wordpress▮◗ docker-compose up -d   
[+] Running 2/0
 ✔ Container db         Running                                                                                  0.0s 
 ✔ Container wordpress  Running                                                                                  0.0s 
 ⠋ Container webserver  Starting                                                                                 0.0s 
Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:80 -> 0.0.0.0:0: listen tcp 0.0.0.0:80: bind: permission denied

Ports open before running docker-compose up command

╰▮~/Documents/dev/wordpress▮◗ sudo netstat -tulpn   
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:41315           0.0.0.0:*               LISTEN      143013/com.docker.b

Extract from docker-composer.yml

  webserver:
    depends_on:
      - wordpress
    image: nginx:1.15.12-alpine
    container_name: webserver
    restart: unless-stopped
    ports:
      - "80:80"
    volumes:
      - wordpress:/var/www/html
      - ./nginx-conf:/etc/nginx/conf.d
      - certbot-etc:/etc/letsencrypt
    networks:
      - app-network

System
OS: Arch Linux
Kernel: 6.8.5
Docker version: 26

Are you trying Docker Desktop as the category suggests?

PS.: I edited your post, please heck the following guide to be able to format your posts properly and use code blocks: How to format your forum posts

Oh thank you for that.

Yes I am.
I can get other services to run just not nginx