Closed roughnecks closed 2 years ago
@roughnecks Is the matrix-docker-ansible-deploy
playbook the only thing installed? Or do you have other services installed with docker?
Mine is pretty big too (I have a lot of other services running):
/var/lib/docker/overlay2# du -hs
40G .
After removing unused images from Portainer, it got reduced to 23G.
/var/lib/docker/overlay2# du -hs
23G .
@roughnecks Is the
matrix-docker-ansible-deploy
playbook the only thing installed? Or do you have other services installed with docker?
I've got no other services, just matrix.
@roughnecks I have no idea then, but 5 gb seems to me like a reasonable amount for just the docker images necessary for you to run your matrix server + the bridges.
It's just that since when it was 6.5GB on / I have only removed stuff, not added anything, but disk space increased.. This is what I don't understand.
Thanks for your answer though.
@roughnecks That is weird, though... Maybe some things are getting stored there that aren't supposed to be.
This is also interesting:
root@pandora:~# docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 10 9 2.604GB 116.6MB (4%)
Containers 9 9 0B 0B
Local Volumes 1 1 0B 0B
Build Cache 0 0 0B 0B
Only 2.6GB reported; sorry if this isn't what I think, I'm new to docker and all this stuff.
New data: https://paste.debian.net/hidden/f29afda1/
There's a lot of dir inside "overlay2" and the ones on top are my images.
Try stopping services (run the playbook with --tags=stop
) and evaluate the situation then. The du
value should be close to what docker system df
says.
When containers are running, they take up additional space in /var/lib/docker/overlay2
(well, or elsewhere, depending on the Storage Driver - docker info | grep 'Storage Driver'
).
Yeah, when stopped, disk pace is equal... so is it normal to have it doubled when the playbook is running(?)..
root@pandora:/var/lib/docker/overlay2# docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 10 0 2.604GB 2.604GB (100%)
Containers 0 0 0B 0B
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B
root@pandora:/var/lib/docker/overlay2# du -hs
2.7G .
root@pandora:/var/lib/docker/overlay2# docker info | grep 'Storage Driver'
Storage Driver: overlay2
Yes, it is. Container image layers are extracted and organized to make up each existing container's filesystem.
Different storage drivers may handle this more efficiently. In any case, this is a Docker thing and not an issue with the playbook itself.
I see, thanks for explaining.
Playbook Configuration:
My
vars.yml
file looks like this:Matrix Server:
Problem description:
My problem is that:
Used space is increasing fast and I don't have much left. I'm on a low tier VPS. I tried:
# docker system prune -a
but only a couple hundred MB were released. I checked online and it looks like I'm not alone on this issue but I haven't gone very far with finding a solution.If you read my vars.yml you can see that I enabled and subsequently disabled some of the modules, so I'm not sure if docker images changes could do that to the overlay2 folder.
Last time I checked with
df -h
(yesterday) I had 6.5GB used on /, today it's 7.8. This is just a personal HS with my user being the only one logged - registration is disabled.Any help would be much appreciated, thanks.