A simple docker registry cleaner
Project description
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]'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for docker-registry-purger-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89eb1f626d81f2bbe9b76242981e70709ad192f03d42b9207662911806946f0b |
|
MD5 | 877ea9ce613215911dcad517fc6db9f8 |
|
BLAKE2b-256 | 28cdba133f14305bdb31e27bcacf7219b70a69da2f6c4311ceb5e4cab4e8cbe6 |
Close
Hashes for docker_registry_purger-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9cc2ce8fcdc005d343327f7259b95350d47ae2a8464d7d08ec32dba375d177e |
|
MD5 | c10d9124dda2b402cf8b569abc2bf4f7 |
|
BLAKE2b-256 | 257b107d87fa52a1a71dfec90104a835cdf281d01bc3c3e62d865c5a0343254e |