After update for my laptop I got an issue. I have starter docker container, but it fails. The port 5000 is already in use. Hm, maybe some another container took it. Ah, Airplay took it… Did you got same issue? Let’s fix it.
Along time ago I have starter using 5000 port for my projects. Usually it some kind of web services. This is useful, coz you can’t run a lot of services on port 80. With port 5000, I can run containers with web server for example on 5000, 5001, 5002, etc. This is easy to remember thing. I guess, I started using it after some Flask (Python Framework) experience.
So, I have started another container and got an error “Port 5000 is already in use”. I checked my compose file, open ports and didn’t get what is the issue. After some research I remembered about OS update. Okay, catch you!
In macOS Monterey Apple added ability to user your Mac like and AirPlay device. For example, you can stream something from your iPhone to MacBook.
Solution #1: This is stupid, but you could use a lot of another ports. For example, not I am using 6000 and other similar ports instead of 5000. Pros of this way you get AirPlay enabled on your Mac. There are a lot of open ports, but 5000 was like a habit (not a hobbit).
Solution #2: You could disable AirPlay. Go to System Preferences – Sharing. At the bottom you will see checkbox AirPlay Receiver. Disable it to make port open.
I prefer the first way, coz maybe sometimes using AirPlay on my MacBook could be useful. Anyway, it’s good to have a choice. I hope this small note was helpful for you.
By the way, I made small note about how to remove Skype icon from menubar on macOS. Would you like to check it?