/tmp is filling up all my docker space in Unraid


New here so bare with me, ive succesfully installed a minecraft server with a few forge mods and everything works just fine, but after a week of running the server i find the /tmp directory was using up the container size limit docker has (20gb), had an alert on unraid saying my docker was at 100% full. I have erased the /tmp files for now to let the other dockers run fine but the problem persists.

Why is the /tmp directory creating such big files and what can i do about it?
should i redirect the /tmp to my data share and write a script to delete these files every week or so?