0
When I give a telnet from inside the container on port 3306 it from the refused Connection message.
When running the command below I have an error saying that the door is in use
docker run -td --name projeto -p 3306:3306 ambiente-dev-projeto-php56-newimage
error:
Error response from daemon: driver failed programming external connectivity on endpoint eLicitacao (b798a52246aca15563410c8967931be996eda3b4a8dffc3a261a75bda547bae1): Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use.
stopped the mysql of my machine and I ran the command, it works, however, when going up again mysql, it error
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
I tried adding this port to Docker-Compose and had the same problems
Are you trying to access a door from your machine inside the Docker? Why?
– Woss
I need to access my machine’s Mysql
– João Paulo Silva
Ever tried connecting directly to your machine’s local IP? Type 192.168.1.42:3306
– Woss
My configuration in the project is like this, the refused Connection
– João Paulo Silva
I went out to test, I got into Docker, I can drip door 80, and I can’t get that
– João Paulo Silva
Already had a read in the error report on
systemctl status mysql.service
?– a_diogo