Please share any error messages you get. The message
is one of your application message. It would be nice to see the code that prints it.
Share the command you use to
Share the output of:
ss -tlnp
ps -aef | grep mongo
docker ps
What do you get if you remove ! from uri! in your call new MongoClient.