宿主机连接docker启动的MySQL镜像失败
[root@goblin ~]# vi /usr/lib/sysctl.d/00-system.conf
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
net.ipv4.ip forward=1 # 追加这行并保持文件
[root@goblin ~]# systemctl restart network #重启网络
再次使用数据库管理工具navicat尝试连接