That would make sense if the cause is some looping from hanging DNS lookups. Someone should (and likely has) notified the devs about this.
Another possible solution, from https://help.nextcloud.com/t/server-hangs-and-then-is-fine-for-a-bit-then-hangs-again/153917/16
Is docker virtualized or otherwise emulating something? It’s just a way to package things, like an installer? Then it’s bare metal.
I had to look this up too, I thought docker containers were virtualized.