swoft-im icon indicating copy to clipboard operation
swoft-im copied to clipboard

日志打印出来了,主机能telnet容器,但是容器不能telnet宿主机

Open fubing005 opened this issue 3 years ago • 2 comments

以下是打印出来的日志,代码里面服务都是使用127.0.0.1连接的,这个不用修改吧,好几天了,确实是搞不懂了 2021-03-10 16:37:32 [error] [swoft] [logid:6048854ce1df0] [spanid:0] trace[ConnectionPool.php:234,Swoft\Pool\ConnectionPool->getConnectionByChannel] Service connect fail errorCode=115 host=127.0.0.1 port=8092

fubing005 avatar Mar 10 '21 08:03 fubing005

建议就跑在宿主机吧,docker的需要自己配置网络这些 宿主机直接本地通讯了

brewlin avatar Mar 10 '21 08:03 brewlin

建议就跑在宿主机吧,docker的需要自己配置网络这些 宿主机直接本地通讯了

感谢感谢

fubing005 avatar Mar 10 '21 09:03 fubing005