moktar
5/19/2019 - 8:42 PM

nginx error docker

ERROR: for c7650acbcc9a_laradock_nginx_1  Cannot start service nginx: driver failed programming external connectivity on endpoint laradock_nginx_1 (b6ff506c87bc8a6bde1acc30000ed7c5b805ef129c2710c7e0e6ef6c7af642ca): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)



How to solve : 

sudo lsof -i :80
sudo killall httpd
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist

DONE