/Clean-Docker-Tags

Clean unused Docker tags from an Artifactory repository.

Primary LanguagePowerShellMIT LicenseMIT

Clean Docker Tags

This PowerShell script shows and deletes unused Docker tags from an JFrog Artifactory Docker registry.

What it does

The script searches for unused Docker tags based on a given date. All Docker tags which haven't been downloaded since the date are presented. If the user wants, he can delete those tags. Per default, the script keeps all "latest" tags and the last three version tags. How many version tags should be kept, can be specified by a parameter.

Usage

Download the script and run it in PowerShell. To show help with examples and explained parameters, run:

Get-Help -detailed ./clean_unused_tags.ps1