Setup on Pi in Docker - Bind Error

Hoping this is a simple issue that I just can’t see. I’m trying to install Pi-hole on Raspberry Pi in Docker through docker-compose file. I receive the following error:

ERROR: for pihole Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (c6ddeb24bf33865868ea14647e136d1e343ab7d4e149e866e04d840c4edab28a): Error starting userland proxy: listen udp bind: address already in use

If I run:

sudo netstat -tulpn | grep LISTEN

I don’t see any use of port 53

My docker-compose file:

    container_name: pihole
    image: pihole/pihole:4.1_armhf
      - 53:53/tcp
      - 53:53/udp
      - 67:67/udp
      - 80:80/tcp
      - 443:443/tcp
      TZ: 'America/Chicago'
      WEBPASSWORD: 'redacted'
       - '/home/cshinn/docker_files/pihole:/etc/pihole'
       - '/home/cshinn/docker_files/pihole/dnsmasq.d:/etc/dnsmasq.d'
    # run `touch ./var-log/pihole.log` first unless you like errors
    # - './var-log/pihole.log:/var/log/pihole.log'
    # Recommended but not required (DHCP needs NET_ADMIN)
      - NET_ADMIN
    restart: unless-stopped

The readme documents the most common port 53 conflicts:

  • Port conflicts? Stop your server’s existing DNS / Web services.
    • Ubuntu users especially may need to shut off dns on your docker server so it can run in the container on port 53