make sure you have ample threads allowance in docker settings, also make sure you properly close your threads after usage because if not closed properly, the threads will stay and cause blockage and eventually it will stop in docker due to resource utlitization