Error when trying to launch the Pi-hole docker container on port 8080

Viewed 47

I am trying to set up Pi-hole in a Docker Container on my home server running Windows 11 but when I try to launch the container I am met with this error:

docker: 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: An attempt was made to access a socket in a way forbidden by its access permissions.

I have tried removing any programs that I know were running on port 8080 and even ran the command netstat -ano | findstr :8080 but no processes appeared to be using the port. I have also tried restarting the machine, restarting the TCP/IP stack, and disabling windows firewall temporarily. I have no clue as to what else could be causing the port to be unavailable.

I'm using this script to launch the container:

docker run -d --name pihole -e ServerIP=192.168.x.xxx -e WEBPASSWORD=[REDACTED] -e TZ=America/New_York -e DNS1=127.17.0.1 -e DNS2=1.1.1.1 -e DNS3=1.0.0.1 -p 80:80 -p 53:53/tcp -p 53:53/udp -p 443:443 --restart=unless-stopped pihole/pihole:latest

0 Answers
Related