I recently had to expand my instance’s storage size from 25 GB to 50 GB because it was out of space. How much storage do you all use for your instances? I’m a little surprised that it ran out of space as my instance isn’t heavily used.
Am I doing something wrong? I prune all the unused docker images, so it’s not that.
you could
truncate -s 0 /var/lib/docker/containers/*/*-json.log
(which might break logs currently being written), configure logging viadocker-compose.yml
, or even better/etc/docker/daemon.json
https://github.com/LemmyNet/lemmy-ansible/pull/49
Thanks. I’ll have to look up how to configure daemon.json. I just truncated the logs for now. I wish I had known about that earlier! It cleared up about 15 GB of space.
Oh, wow. I guess the default log settings should be much less verbose?
Wow, logs take up a ridiculous amount of space!
you could also free up space on pictrs
docker exec -it YOUR_PICTRS_CONTAINER /bin/sh -c "rm /tmp/magick-*"
Hmm, tried that. It said no
magick-*
files exist.hm, maybe this problem has been fixed
I created this instance with docker directly instead of using Ansible. Not sure if that could be why.