Bintray docker repository storage

204 Views Asked by At

On Bintray I found out that I have a private docker repository consuming quite a lot of space:

Account usage by repository

I then proceeded to do some house keeping and kept only the last 3 tags of all the images I have. However, that didn't help much. The storage didn't change at all after deleting all these old tags.

I got this API endpoint here: https://bintray.com/docs/api/#_get_package_files to have an estimate on the package files size:

for img in $(cat images) ; do curl -s -XGET -u "user:pass" https://bintray.com/api/v1/packages/my-org/internal-docker/$img/files | python -m json.tool | jq '.[] | .size' | awk '{ sum += $1 } END { print sum }' ; done

Suming all those up gets me 63723101568 bytes, 60GB.

Any idea where the other 310GBs are?

Notice that, even if the 3 tags were completely different from each other, I would get worst case 3x that figure, so 180GB. But the 375GB is still there.

2

There are 2 best solutions below

3
On

Where are you getting the array 'images'?

You are not curling for the entire list but rather single files.

It's possible your list did not include all the images in this repo.

Check to make sure you have traversed all subfolders for images as well.

0
On

After some time, something changed in the backend storage

I asked on their support (you have to click on Feedback when logged in to Bintary) and they're checking if there was any house keeping done or only after I complained to them something was done.

I'll update if I hear more from them.