xxredxpandaxx Posted August 20, 2017 Share Posted August 20, 2017 My docker image was full and my containers wouldn't start so I deleted it and started a new one. It is 33GB and I only have 2.8GB free. I have included a picture of my containers. I don't really have that much installed. How can I find out what is taking all of my space? Link to comment
CHBMB Posted August 20, 2017 Share Posted August 20, 2017 Take a look here at the relevant section... Link to comment
brando56894 Posted August 21, 2017 Share Posted August 21, 2017 4 hours ago, xxredxpandaxx said: My docker image was full and my containers wouldn't start so I deleted it and started a new one. It is 33GB and I only have 2.8GB free. I have included a picture of my containers. I don't really have that much installed. How can I find out what is taking all of my space? You have folders mapped incorrectly somewhere and data is being written to the docker image instead of to your array. You can try du -xh --max-depth=1 /var/lib/docker|sort -hr and that should tell what what folders are consuming the most space in your image. Mine looks like this, removing the -x flag allows it to cross filesystem boundaries so that will show files in your Docker subvolumes. root@unRAID:~# du -xh --max-depth=1 /var/lib/docker|sort -hr 17M /var/lib/docker 12M /var/lib/docker/image 2.4M /var/lib/docker/unraid 2.4M /var/lib/docker/containers 104K /var/lib/docker/volumes 104K /var/lib/docker/network 0 /var/lib/docker/trust 0 /var/lib/docker/tmp-old 0 /var/lib/docker/tmp 0 /var/lib/docker/swarm 0 /var/lib/docker/plugins 0 /var/lib/docker/btrfs root@unRAID:~# du -h --max-depth=1 /var/lib/docker|sort -hr 22G /var/lib/docker/btrfs 22G /var/lib/docker 12M /var/lib/docker/image 2.4M /var/lib/docker/unraid 2.4M /var/lib/docker/containers 104K /var/lib/docker/volumes 104K /var/lib/docker/network 0 /var/lib/docker/trust 0 /var/lib/docker/tmp-old 0 /var/lib/docker/tmp 0 /var/lib/docker/swarm 0 /var/lib/docker/plugins Link to comment
xxredxpandaxx Posted August 25, 2017 Author Share Posted August 25, 2017 On 8/20/2017 at 9:28 PM, brando56894 said: You have folders mapped incorrectly somewhere and data is being written to the docker image instead of to your array. You can try du -xh --max-depth=1 /var/lib/docker|sort -hr This is what I get. root@Maple1:~# du -xh --max-depth=1 /var/lib/docker|sort -hr 130M /var/lib/docker 108M /var/lib/docker/containers 21M /var/lib/docker/image 2.4M /var/lib/docker/unraid 92K /var/lib/docker/network 24K /var/lib/docker/volumes 0 /var/lib/docker/trust 0 /var/lib/docker/tmp 0 /var/lib/docker/swarm 0 /var/lib/docker/btrfs root@Maple1:~# du -h --max-depth=1 /var/lib/docker|sort -hr 78G /var/lib/docker/btrfs 78G /var/lib/docker 108M /var/lib/docker/containers 21M /var/lib/docker/image 2.4M /var/lib/docker/unraid 92K /var/lib/docker/network 24K /var/lib/docker/volumes 0 /var/lib/docker/trust 0 /var/lib/docker/tmp 0 /var/lib/docker/swarm Nothing seems to be taking up too much space. Link to comment
xxredxpandaxx Posted August 26, 2017 Author Share Posted August 26, 2017 Well I didn't do anything to change it but now it shows 21 GB free which is about correct. Not sure what happened. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.