While developing amongst many projects, you may encounter this error when using docker
; more specifically docker-compose
:
ERROR: for {container_name} Cannot start service nginx: driver failed programming external connectivity on endpoint {container_name} ({hash}): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
As a MAC user, the fix is simply to disable the locally running apache
instance, allowing docker
to forward port 80 locally from the nginx
container (in my case).
1 |
sudo apachectl stop |