swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.59k stars 786 forks source link

swoft restart 后无法链接到其他容器 #1442

Closed AlvinQinwen closed 3 years ago

AlvinQinwen commented 3 years ago
Q A
Bug report? yes
Feature request? yes
Swoft version 2.0
Swoole version 4
PHP version 7.2.18

Runtime environment

image 一直用的好好的 就docker restart swoft 后就不行了。 深夜抢救中 请教一下这种情况应该在哪里找错误。 Fatal error: Uncaught Swoft\Connection\Pool\Exception\ConnectionPoolException: Create connection error(Connect failed host=172.17.0.6 port=18307) file(/var/www/swoft/vendor/swoft/rpc-client/src/Connection.php) line (74) in /var/www/swoft/vendor/swoft/connection-pool/src/AbstractPool.php:255

AlvinQinwen commented 3 years ago

找到问题了,容器集体重启后ip变动