I’m using Discourse on a VPS with 10 GB SSD space, using stable branch, no swap.
The forum has about 22 MB of total backup data (including attachments).
There is nothing else installed on the server, and never was.
Upgrade couldn’t complete, then I did a rebuild which completed but threw errors about no space left on device, yet the forum seems to be back up.
/var/lib/docker is 7.5 GB
/var/discourse is 285 MB
docker images -a says:
REPOSITORY TAG IMAGE ID CREATED SIZE local_discourse/app latest dd1e2641ac41 5 weeks ago 2.363 GB discourse/discourse 1.3.10 1881a9bd3afd 7 weeks ago 1.539 GB <none> <none> 02022664486c 8 weeks ago 2.297 GB <none> <none> ea110ef52b9c 8 weeks ago 2.296 GB discourse/discourse 1.3.9 d2fbe0833acf 9 weeks ago 1.539 GB
Shouldn’t there be some automatic cleaning of docker images via docker-gc or similar?
A forum with 22 MB of data should really not have problems with space on a 10 GB VPS.
My only idea is to
docker images -qa | xargs -r docker rmi before each upgrade and to use rebuild instead of upgrade every time. But this is a slow and stupid workaround.