Pi running only docker with mounted share for storage keeps running out of space. Lost.....
- /RaspberryPi
- Corporate
- Posts: 2449
- Joined: Wed Jun 05, 2019 1:29 am
Pi running only docker with mounted share for storage keeps running out of space. Lost.....
I've a pi which is running a number of containers. All those containers use an nfs share to store their data. Only exception is pi-hole which is local and has a 2GB db file.
I have an issue though where the SD card keeps filling up and I cannot for the life of me find what is doing it.
I've searched for files more than 250M and nothing really there worth worrying about.
pi@rpi4-docker-a:/ $ sudo find / -type f -name '*' -not -path "/mnt/*" -size +100M -exec du -h {} +
I suspect it has something to do with my influxdb container but unable to work it out.
https://preview.redd.it/88qwzdttgccb1.png?width=473&format=png&auto=webp&s=56adea22aaa08b6fac219f686a4e00d375cfa580
Edit: Thanks for the replies.
Eventually found it. As someone suggested, I stopped all containers. Oddly, this freed up 9Gb. Unfortunately I did not notice which container did that. The rest of the space was consumed by the image files. I ran prune and it freed it up. Recreated the containers and they don't use as much space as before...
submitted by /u/CrappyTan69
[link] [comments]
Source: https://www.reddit.com/r/raspberry_pi/c ... share_for/
/RaspberryPi