Docker Fails To Deploy On Wappler Startup

Wappler Version : 4.5.1
Operating System : Mac M1
Server Model: PHP
Database Type: Docker MySQL 8
Hosting Type: Local Dev

Expected behavior

What do you think should happen?

Docker should deploy without errors

Actual behavior

What actually happens?

Wappler starts; Docker starts; Docker tries to deploy, then fails (see photos); After second attempt made by clicking the Deploy button, Docker then deploys as expected.

How to reproduce

Quit everything, and reopen Wappler.

Error Message:
Starting all services up ...
Starting db ... done
Starting web ...
Starting web ... error

ERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint local_dev__local_dev_web_1 (f4f4bb9a1108b330f2cdab088af36a74f19e1454d6975767a8fa4abf55dc726a): Bind for 0.0.0.0:8100 failed: port is already allocated
All Services Started!

After Deploy Button Restart

Have you tried restarting your computer?

Yes several times.

Well seems something is running on port 9906 that is used by the database container in docker. It might be a different project? It is a bit confusing as in later explanations you show port 8100 as being in use.

You should be able to see in the Docker Desktop dashboard what is running and maybe stop it.

Usually on project switch Wappler takes care of that by itself.

Did you change some project names or folder locations recently?

I’ll take look. Thanks George.

I had another volume running. After I deleted it and it’s images, the startup process worked perfectly.

So when I add another Docker project I will need to assign a different port? Or will Docker automatically assign one that does not conflict with any existing ports?

Well the docker projects made by Wappler are usually switched automatically but if you have something else running in docker desktop well you should switch it off yourself.

Thank you George. Your suggestions lead me the solution!