When I compiled tdesktop through docker, I met an error of "out of space".
After I spent some time I found it was because the docker wrote a lot of logs in /var folder.
To clean up the logs, you can follow these steps:
-
Find the big size files in
/var/lib/docker.find /var/lib/docker -size +10M or find /var/lib/docker -size +100M -
The files in
/varhandled by syslogd or any other similiar one. So you need to do this instead of removing the file.cat /dev/null > found_big_size_file
To make it automatic, you can do this:
find /var/lib/docker -size +10M | xargs -I % sh -c 'cat /dev/null > "%"'