dgzlopes / foobar-demo

Distributed tracing demo.
Apache License 2.0
29 stars 12 forks source link

Port 5000 Busy #4

Open stewam7 opened 2 years ago

stewam7 commented 2 years ago

If you are receiving the following error when running docker-compose on an M1 Mac running Monterey:

Error response from daemon: Ports are not available: listen tcp 0.0.0.0:5000: bind: address already in use

It is due to a new Airplay functionality that utilizes Port 5000. You can simply disable the functionality here and it will free up the port. Here is a quick blog that outlines it, and then Port 5000 should be free'd up.

https://twissmueller.medium.com/resolving-the-problem-of-port-5000-already-being-in-use-dd2fe4bad0be

edco29 commented 2 years ago

Hi @stewam7 , I was dealing with the same error , here my solution: if you have enabled airplay receiver so you need to disable it because It use the 5000 port by default

go to system preferences => sharing => uncheck the airplay receiver .

good luck.

eikebartels commented 2 years ago

instead of disable the airplay receiver you can also just change the ports in the docker-compose file