赞
踩
https://blog.csdn.net/ii19910410/article/details/88667899
1.使用命令ifconfig,找到名为docker0 的ip地址,一般为:172.17.0.1
2.springboot应用的链接地址修改为该地址
3.若还是连接不上,修改mysql的配置文件 my.conf
末尾加入bind-address=172.17.0.1 或bind-address=0.0.0.0
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。