Ruby driver fails to connect with JRuby 9.3

I have a similar issue but using Ruby 3.3.3 and Docker

MONGODB | Topology type ‘unknown’ initializing.
web-1 | 11:07:04 web.1 | MONGODB | There was a change in the members of the ‘Unknown’ topology.

Any idea on how to fix it?

P.S: This worked fine and after restarting the dev machine this started poping in and reinstalling docker fixes this but data is lost