How to connect to docker mysql container on remote machine
for those who have not yet managed to connect even after all these tips. Consider using another port
Example:
ports:
- '3308: 3306'
I solved my problem this way.
I think your mysql container is listening on ipv6 (seeing your netstat result). In cause may be your docker configuration. I don't know how to resolve it, I personnally just turn off ipv6 on my docker hosts to avoid this problem.
Hope it helps.