What to do when /Var/Lib/Docker/Overlay2 gets bloated in Docker

I ran out of storage on my docker build server. I need to delete unnecessary files, but there is a command to safely allocate space.