Hi,
I’m totally new to docker and also to most of the realm of port mysteries, so I’d really like some help.
I’m running MacOS Sonoma 14.4 on M1. Docker is 4.34.2
I’m trying to get a Python web environment running, so I’ve tried Ddev, Docksal and Lando so far.
On each app, the same issue comes up with whatever port it uses on localhost/127.0.0.1:
The current one (Lando) is this:
`Error response from daemon: Ports are not available: exposing port TCP 127.0.0.1:443 -> 0.0.0.0:0: listen tcp 127.0.0.1:443: bind: can't assign requested address`
It doesn’t matter which port the installed dev app chooses, anything on localhost/127.0.0.1 is not available. Ddev chose 10999, I forget what Docksal did – same result, anyway.
I don’t have MAMP running, if I lsof there is nothing else running on them. I’ve tried turning off firewall and Lulu in case they were interfering.
What can I try next?
Thanks.
On all of them it was triggered by the installed app, like lando start, for instance. I get the error in terminal and on Docker Desktop where the container won’t run.
Did you started the container using the GUI or from command line? PLease, share exact commands or compose files that help us understand what you do. Of course don’t share secrets / credentials.
Okay, the exact command for lando was lando start in the command line. Soryy, that’s maybe not helpful. Each app has a process for creating the containers in Docker when it initialises. I haven’t started any containers in Desktop but I can also see them there once they get built.
Thank you for asking again. I went through the yaml docs in Lando’s directory and I don’t know what details to show you. What I do know is that my MacBook won’t even ping 127.0.0.1 in safe mode, so today I have to reinstall the OS. It looks like the problem probably isn’t with Docker at all but it is something corrupted in the OS. Until I fix that, there is no way to get anything else working. If I still need help when localhost is working properly again at a system level I will post again – thanks.
It’s all been solved. The OS reinstall got localhost working again system-wide and now everything works perfectly using Ddev. Thanks deanalayon for responding.