[RESOLVED] Docker Error: Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)

If you are trying to run Docker on your Mac and you get this error:

 

⨊ $> docker run -d -p 80:80 -v /Users/Someuser/Sites/project:/var/www/html gjuniioor/php-sqlsrv:7.0
7cfebd7ce8f9588c8d691a9cfef0d8b96ca56124779fe26dabe960b978d5fa73
docker: Error response from daemon: driver failed programming external connectivity on endpoint cocky_hamilton (09dcad6987a6410572c47d2d81f624ec86557fbe87f30c65a22f9889d85400a3): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE).

Check to see if Apache is running on your Host computer (Mac in my case)

Stopping Apache on your mac should fix this error;

eg

⨊ $> sudo apachectl stop
⨊ $> docker run -d -p 80:80 -v /Users/Someuser/Sites/project:/var/www/html gjuniioor/php-sqlsrv:7.0
0163f984bed019a83df6eabfc03e28454c71b2510421c47ab27885b305cb7e1d

Hope this helps someone!

2 thoughts on “[RESOLVED] Docker Error: Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)


  1. I started to get this error after some updates. This article helped me fix docker with simply running `sudo apachectl stop` then run docker.

Leave a Reply to Salam Cancel reply

Your email address will not be published.