Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error Permission denied Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error Permission denied docker docker

Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error Permission denied


I solved my issue on Windows 10 Pro, turned out I had the World Wide Web Publishing Service turned on somehow. Took me a while to find that, after noting via netstat -a -n that I had a :80 listener somewhere/somehow. Silly me. Shut it down, and I was fine with port 80.


Change the port using these commands as follow:

docker container ls //show the container infos, note the ports info.docker stop webserverdocker rm webserver  //shut down currently webserverdocker run -d -p 8080:80 --name webserver nginx (or 8000:80)

Finally, let's input localhost:8080 to show whether the connection is successful in the browser.

enter image description here


The problem is general-use ports like 80, 443, 22, .. (in general ports < 1024) are system-protected so you need privileges to use them, here it'll be enough to be a system administrator and execute command as a administrator.

If it doesn't have to be :80 try using other port, like :8080, if that doesn't help and the error doesn't change, the problem goes deeper.