Skip to main content

A simple cleaner for private docker-registries.

Installation

$ pip install docker-registry-purger

Usage

Clean registry using standard options (i.e keep at less 7 versions, drop only packages older than 180 days, developement packages older than 30 days and rc packages older than 90 days).

$ docker-registry-purger 'https://[username]:[password]@[your_repository]'
$ # OR if you have your credentials in ``.netrc``
$ docker-registry-purger 'https://[your_repository]'

This script only drops references to blobs, the blobs themself are not deleted, to remove them you have to follow the procedure describe on https://docs.docker.com/registry/garbage-collection/#run-garbage-collection.

You can test this script with the dry-run option:

$ docker-registry-purger --dry-run 'https://[username]:[password]@[your_repository]'

Release files for docker-registry-purger 0.1.1

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-purger 0.1.1
File Size Uploaded
docker-registry-purger-0.1.1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docker-registry-purger 0.1.1
File Interpreter ABI Platform
docker_registry_purger-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / docker-registry-purger-0.1.1.tar.gz

Download URL docker-registry-purger-0.1.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
89eb1f626d81f2bbe9b76242981e70709ad192f03d42b9207662911806946f0b
BLAKE2b-256 checksum
How to use checksums
28cdba133f14305bdb31e27bcacf7219b70a69da2f6c4311ceb5e4cab4e8cbe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Release files / docker_registry_purger-0.1.1-py3-none-any.whl

Download URL docker_registry_purger-0.1.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9cc2ce8fcdc005d343327f7259b95350d47ae2a8464d7d08ec32dba375d177e
BLAKE2b-256 checksum
How to use checksums
257b107d87fa52a1a71dfec90104a835cdf281d01bc3c3e62d865c5a0343254e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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