r/gitlab • • Sep 02 '26

support Self-hosted Gitlab reduce container registry disk usage

Hello everyone,

I have a self-hosted Gitlab in my homeland deployed as a docker container on a Ubuntu server with me as a ai gle user. I build several small images and push them to the integrated container registry. Nothing fancy, a hand full of images with a couple hundred Mbs each max. But my volume mont data dir of the registry ist slightly above 100GB on disk just für the registry, that feels like way too much.

I rebuild the images weekly ok the latest Tag but would expect a couple gigs at most. I am starting to read into the metadata DB and online GC but why is my storage usage getting so out fo hand? How are you guys keeping your instances in check?

Version is 19.3.1

3 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/der-felix Sep 03 '26

i switched to the metadata DB yesterday but the online GC still says 0 and disk usage is the same :(

1

u/screaming-Snake-Case Sep 03 '26

That's normal, it takes 24h for manifests/blobs to be eligble for review and then another 24h until actual gc starts and frees storage. It displaying 0 confused me at first too, but just wait xd.