Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docker-registry-purger-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docker_registry_purger-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file docker-registry-purger-0.1.1.tar.gz.

File metadata

  • Download URL: docker-registry-purger-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for docker-registry-purger-0.1.1.tar.gz
Algorithm Hash digest
SHA256 89eb1f626d81f2bbe9b76242981e70709ad192f03d42b9207662911806946f0b
MD5 877ea9ce613215911dcad517fc6db9f8
BLAKE2b-256 28cdba133f14305bdb31e27bcacf7219b70a69da2f6c4311ceb5e4cab4e8cbe6

See more details on using hashes here.

File details

Details for the file docker_registry_purger-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: docker_registry_purger-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for docker_registry_purger-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9cc2ce8fcdc005d343327f7259b95350d47ae2a8464d7d08ec32dba375d177e
MD5 c10d9124dda2b402cf8b569abc2bf4f7
BLAKE2b-256 257b107d87fa52a1a71dfec90104a835cdf281d01bc3c3e62d865c5a0343254e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page