dksweeper

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 5 Imported by: 0

README

Docker Registry Sweeper

A CLI which helps you remove a reference between obsolete Docker images and their blobs for later removing by Docker built-in garbage collector

How to use this CLI

Options
Option Required Description
-u, --username <username> false Username to access Docker Registry
-p, --password <password> false Password to access Docker Registry
--host <host> true Docker Registry host with a protocol (http, https)
-r, --repo <repo> true Repository for cleanup
--max-age <max-age> true Keep images whose age is less than this value (in days). Older images will be unlinked with their blobs.
--keep-tag <n> true Number of tags to be preserved. It's to prevent deleting entire images. For example, if all the tags are obsolete (by max-age), this parameter is to make sure that n latest tags will not be unlinked.
--verbose false Print info during processing

License

This project is licensed under the MIT License - see the LICENSE file for details

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL