Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for plunger, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size plunger-1.0.1-py3-none-any.whl (20.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size plunger-1.0.1.tar.gz (18.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page