Skip to main content

A tool to inspect and clean gitlab's docker registry.

Project description

A tool to inspect and clean gitlab’s docker registry.

Installation

Using pip:

$ pip install plunger

Examples

First export some env var to avoid reapeating command line arguments:

$ export PLUNGER_REGISTRY=https://your.gitlab.registry/
$ export PLUNGER_KEY_FILE=/path/to/your/key

Inspect the registry:

$ # show size used by images, grouped by gitlab group
$ plunger --list 1

$ # show sizes only for a group
$ plunger --list 2 --filter repository/

$ # show sizes of all tags
$ plunger --list 0 --filter repository/path/

Remove some images:

$ # keep 4 latest tags for each repos
$ plunger --keep 4

$ # keep 2 latest tags for repos starting with 'repository/'
$ plunger --keep 2 --filter repository/

$ # remove all tags for repos starting with 'repository/path/'
$ plunger --keep 0 --filter repository/path/

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

plunger-1.0.1.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

plunger-1.0.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file plunger-1.0.1.tar.gz.

File metadata

  • Download URL: plunger-1.0.1.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for plunger-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ad929187ab8abac9a93f0d56ff1322ebdfb4998b761c781c0dfccb9a2a9dd86e
MD5 461635a38365da47ef8a8bddcb27b087
BLAKE2b-256 07375acff6dc8a751bcaadbe89ae13d57602025b726445bc6f9b8058df72ec54

See more details on using hashes here.

File details

Details for the file plunger-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: plunger-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for plunger-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a8fcf3b3cb08c161262f5037f060cc60c7132373eb75348db6baa9e2fc24efe
MD5 ede6480da2dd65c4430c377871a3083b
BLAKE2b-256 895d55de0cc57e2d8f5dcbec337c9a07974ddd1e8e7c29fc5eed6df7284bafdc

See more details on using hashes here.

Supported by

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