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]'
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docker-registry-purger-0.1.1.tar.gz | 4.5 kB | Without provenance | Details for docker-registry-purger-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docker_registry_purger-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for docker_registry_purger-0.1.1-py3-none-any.whl |
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
|
Security for docker-registry-purger 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.