Once I tried to clean the docker mess and it works , after 1 hour I faced the problem again, I don’t know what is it exactly, would you please give me a lil help?
You might want to log in as root, e.g., “sudo -s” or “sudo -”. Then start at / and drill down into the largest directories with:
# From the current location:
ls -lS . | head -n 20
# From a specific location:
ls -lS /some/where | head -n 20
This sorts by size. If you want a more convenient “human” size with things like KB and MB instead of raw bytes, use the “-h”:
# From the current location:
ls -lSh . | head -n 20
# From a specific location:
ls -lSh /some/where | head -n 20
This does not tell you what directories contain though since a directory entry is more or less the metadata. If you have time, then you might try something like this which looks into subdirectories:
# From this location:
du -a . 2>/dev/null | sort -n -r | head -n 20
# From a specific location:
du -a /some/where 2>/dev/null | sort -n -r | head -n 20
Some files are expected to be large, and so unless you know what a file is doing, I would not recommend deleting it.
One place to start is in the log file directory, “/var/log”. Make sure it isn’t just a log of errors. If it is, then you need to find out what the error is before deleting.