OK, let’s try:
iptables -I INPUT -d 172.17.0.1 -p tcp --dport 3306 -j ACCEPT
Then connect to the container again and try to access port 3306 on the host.
OK, let’s try:
iptables -I INPUT -d 172.17.0.1 -p tcp --dport 3306 -j ACCEPT
Then connect to the container again and try to access port 3306 on the host.