启用防火墙的状态下,使用雷池初始化,会报错:
panic: failed to init pg db: failed to connect to host=safeline-pg user=safeline-ce database=safeline-ce: dial error (dial tcp 172.22.222.2:5432: connect: no route to host)
解决办法:
# 查看 Docker 网桥接口名称(safeline-ce 对应的网桥名)
ip link show | grep safeline-ce
# 放行该接口的所有流量
firewall-cmd --permanent --zone=trusted --add-interface=safeline-ce
# 重新加载规则
firewall-cmd --reload
评论0
暂时没有评论