I had a problem with a lack and decrease of disk space in my root partition. I ran
sudo du -a / --exclude=/media --exclude=/proc --exclude=/home | sort -n -r | head -n 100 to get a list of large directories/files. Some of those are in
However I don't have docker installed anymore.
- Why does that directory still exist, especially if it's so large? Shouldn't it be removed when uninstalling or the user get a prompt asking about it?
- Why are some files in that directory still being accessed recently?
- How to find these things out and is it safe to delete that whole directory (only accessible with root/CLI)?
sudo lsof | grep /docker only returns
lsof: WARNING: can't stat() fuse file system /run/user/1000/doc Output information may be incomplete.
sudo stat /var/lib/docker/volumes/long-id/_data/journal displays that the file was last accessed today (WiredTiger logs).
I'm using Debian10/KDE.
Edit: as of right now I moved the whole directory to another location. It's multiple GB in size. Maybe that was the cause of the problem of continuously decreasing root partition disk space down to 0B. But finding out whether or not it was would be a separate question.