Port is already occupied on host

Edit on GitHub

Description

Running the docker/sdk up console command returns an error similar to the following:

ERROR: for nginx_frontend Cannot start service nginx_frontend: driver failed programming external connectivity on endpoint spryker_nginx_frontend_1 (e4fdb360f6c9a3243c0a88fa74f8d377325f65b8cd2340b2dacb51377519c1cf): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)

Solution

  1. Check what process occupies the port:
sudo lsof -nPi:80 | grep LISTEN
  1. Stop the process or make it use a different port.
  2. Run docker/sdk up again.