https://github.com/polyconseil/docker-registry-purger
A simple cleaner for private docker-registries
https://github.com/polyconseil/docker-registry-purger
Last synced: 11 months ago
JSON representation
A simple cleaner for private docker-registries
- Host: GitHub
- URL: https://github.com/polyconseil/docker-registry-purger
- Owner: Polyconseil
- License: bsd-3-clause
- Created: 2017-08-18T16:00:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-10T09:43:40.000Z (about 6 years ago)
- Last Synced: 2025-06-23T20:51:57.501Z (12 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 4
- Watchers: 29
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: ChangeLog.rst
- License: LICENSE
Awesome Lists containing this project
README
Docker Registry Purger
======================
A simple cleaner for private docker-registries.
Installation
------------
.. code-block:: console
$ 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).
.. code-block:: console
$ 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:
.. code-block:: console
$ docker-registry-purger --dry-run 'https://[username]:[password]@[your_repository]'