We are currently developing a mix of docker applications and docker-free applications.db uses mysql, which uses docker.
However, perhaps because there is something that does not use docker, when I try to build mysql on docker, the following error occurs:
Starting****-db...
Starting ******-db...error
ERROR:for****-db Cannot start service db:driver failed programming external connectivity on endpoint ff-fdsvr-db(****):Error starting userland proxy:listentcp 0.0.0.0:3306:bind:address already in use
ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint****-db(****): Error starting userland proxy:listentcp 0.0.0.0:3306: bind:address already in use
ERROR:Encounter errors while ringing up the project.
Makefile:25: Target 'migration' recipe failed
make:*** [migration] error 1
Perhaps you should stop or kill a process that currently uses 3306 ports, but when you look at it with the ss-antu
command, you don't know which process is using it as follows:
tcp LISTEN 0 80 127.0.0.1:3306*:*
In this case, how can we solve this problem?
Thank you.
The environment is as follows:
OS:ubuntu 16.04
mysql —5.7
python:3.6
Run with the -i
option of the lsof
command with the :port number
to display the command name and process ID if any processes are using that port.
$lsof-i:3306
© 2024 OneMinuteCode. All rights reserved.