Skip to main content

Docker Registry Statistics

This project aims to create tool which will calculate disk usage statistics of docker registry.

Instalation

Project requires at least Python3.6, next just install package into virtualenv (or system if you don't mind)

pip install gitlab-registry git+https://github.com/pbabics/docker-registry-statistics.git@master

Usage

Usage is fairly simple:

docker_registry_statistics  <Path to registry> <Command>

Right now these are implemented commands:

  • statistics
  • orphaned_images
  • unused_blobs

Note that registry path should contain directory structure like docker/registry/v2/... for example this directory for Gitlab by default is /var/opt/gitlab/gitlab-rails/shared/registry.

statistics command

Goes through all tags, images and blobs and sumarized disk usage statistics, per repository and overall disk usage of registry.

orphaned_images command

Lists all images that are no longer used as a current image for tag under which they were pushed.

unused_blobs command

Lists all blobs that are not used by any image and are just using up disk space.

Metadata

Release files for docker-registry-statistics 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docker-registry-statistics 0.1.0
File Size Uploaded
docker-registry-statistics-0.1.0.tar.gz 6.2 kB Details

Release files / docker-registry-statistics-0.1.0.tar.gz

Download URL docker-registry-statistics-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
52acf13635f2b01f75afe3f771d14f433bd16d8d0a6c66265db973405ee31725
BLAKE2b-256 checksum
How to use checksums
0f7d832da70f2a18d56e05b72307bf969efc428b59f90b12cc016ed51fdbc9c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page