curl: (56) Recv failure: Connection reset by peer解决方式

搭建docker中的mysql访问宿主机端口报错curl: (56) Recv failure: Connection reset by peer

解决方法很简单,重建docker0网桥,但出现错误原因不清楚

重建docker0网桥步骤:

# 停止docker
systemctl stop docker
# 安装bridge-utils
yum install -y bridge-utils 
# 关闭docker0网桥
ip link set dev docker0 down
# 删除docker0网桥
brctl delbr docker0
# 添加docker0网桥
brctl addbr docker0
# 添加网桥信息
ip addr add 172.16.10.1/24 dev docker0
# 启动docker0网桥
ip link set dev docker0 up
# 查看网桥是否正常
ip addr
# 启动docker
systemctl restart docker

可能每次重启centos都要运行一遍这个

参考:https://blog.csdn.net/qq_37490555/article/details/113944414?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164412107116780271580309%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=164412107116780271580309&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_v31_ecpm-8-113944414.pc_search_insert_ulrmf&utm_term=curl%3A+%2856%29+Recv+failure%3A+Connection+reset+by+peer&spm=1018.2226.3001.4187

上一篇:Git客户端工具:SourceTree中文版


下一篇:工厂模式