como resolver o problema da porta 3306 em uso quais arquivos alterar no projeto? Os comandos da aula não resolvem.
--> no terminal do ubuntu <--
Image for service app was built because it did not already exist. To rebuild this image you must use docker-compose build
or docker-compose up --build
.
for 3156-curso-2-appsec_db_1 Cannot start service db: driver failed programming external connectivity on endpoint 3156-curso-2-appsec_db_1 (419acbc27ab108381ef6483fb6f2c64d235cde959dc607eaebe64260b2c422c9): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use
--> no terminal do vscode <-- clairton@clairton-VirtualBox:~/3156-Curso-2-AppSec$ docker-compose up Starting a2746cdec11c_3156-curso-2-appsec_db_1 ... 3156-curso-2-appsec_redis_1 is up-to-date Starting a2746cdec11c_3156-curso-2-appsec_db_1 ... error
ERROR: for a2746cdec11c_3156-curso-2-appsec_db_1 Cannot start service db: driver failed programming external connectivity on endpoint a2746cdec11c_3156-curso-2-appsec_db_1 (767f9732335ca486db88314cf1e28ef5ed1ca929bdb31b585d2573ce897d219d): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use
ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint a2746cdec11c_3156-curso-2-appsec_db_1 (767f9732335ca486db88314cf1e28ef5ed1ca929bdb31b585d2573ce897d219d): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use ERROR: Encountered errors while bringing up the project. clairton@clairton-VirtualBox:~/3156-Curso-2-AppSec$ sudo lsof -i :3306 sudo: The "no new privileges" flag is set, which prevents sudo from running as root. sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.