luyadev / luya-kickstarter

Kickstart a new LUYA project application.
https://luya.io
MIT License
46 stars 26 forks source link

Docker: Port allocation error #12

Closed dev7ch closed 6 years ago

dev7ch commented 6 years ago

Until this step all works fine, but it looks like the same container is started more then one time, error output:

Starting docker_luya_web_1 ...
docker_luya_db_1 is up-to-date
Starting docker_luya_web_1
Starting docker_luya_composer_1 ...
docker_luya_php_1 is up-to-date
Starting docker_luya_web_1 ... error

ERROR: for docker_luya_web_1  Cannot start service luya_web: driver failed programming external connectivity on endpoint docker_luya_web_1 (042b3502caf1ee94de8b52bbf719493ca128109eb65666670ec7365db96946aa): Error starting userland proxy: BiStarting docker_luya_composer_1 ... done

ERROR: for luya_web  Cannot start service luya_web: driver failed programming external connectivity on endpoint docker_luya_web_1 (042b3502caf1ee94de8b52bbf719493ca128109eb65666670ec7365db96946aa): Error starting userland proxy: Bind for 0.0.0.0:8080 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
rainerCH commented 6 years ago

Do you have another Service running on Port 8080 already?

nadar commented 6 years ago

You can also try to change the port in the yaml file. Also make sure not to run the composer up command twice in two terminals.

dev7ch commented 6 years ago

Yes, there have been other services running on port 8080, after stopping them all I can confirm all went fine.

Regarding changing the port it didn´t work out, maybe cause of the TCP is still set to 80:

     Up 8 seconds        80/tcp, 0.0.0.0:3000->3000/tcp   docker_luya_web_1

however thamls for your help.