跳转到主要内容

一个用于检查和清理GitLab的Docker注册表的工具。

项目描述

一个用于检查和清理GitLab的Docker注册表的工具。

安装

使用pip

$ pip install plunger

示例

首先导出一些环境变量以避免重复命令行参数

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

检查注册表

$ # 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/

删除一些镜像

$ # 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/

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源分布

plunger-1.0.1.tar.gz (18.9 kB 查看哈希值)

上传时间:

构建分布

plunger-1.0.1-py3-none-any.whl (20.4 kB 查看哈希值)

上传时间 Python 3

由以下支持