Count registry size towards repo size

Problem to solve

In the admin panel, I'd like to know which repository is taking up how much of my disk space. Currently I see that some repositories are taking up much, yet I know that some repositories have images towards hundreds of gigabytes. Would it be possible to count the size of these images towards the total size as well?

Intended users

Sidney (Systems Administrator)

Further details

"My server is full, but all repos are barely a few mb big" would be a possible consequence of not counting the registry size. The registry can get quite big.

Proposal

screenshot proposal implemented

Add a field for registry size / image size in the admin panel single-repository view

Additionally count it towards the total size of a repository in the admin panel

Permissions and Security

Admin panel

Documentation

Testing

Counting the tag sizes properly

What does success look like, and how can we measure that?

It counts the registry size properly and show it in the admin panel

Links / references