https://github.com/gdatasoftwareag/clean-docker-tags
Clean unused Docker tags from an Artifactory repository.
https://github.com/gdatasoftwareag/clean-docker-tags
artifactory docker docker-registry docker-registry-cleanup
Last synced: about 1 month ago
JSON representation
Clean unused Docker tags from an Artifactory repository.
- Host: GitHub
- URL: https://github.com/gdatasoftwareag/clean-docker-tags
- Owner: GDATASoftwareAG
- License: mit
- Created: 2019-04-16T08:09:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T08:17:18.000Z (about 7 years ago)
- Last Synced: 2025-02-27T02:30:14.386Z (over 1 year ago)
- Topics: artifactory, docker, docker-registry, docker-registry-cleanup
- Language: PowerShell
- Size: 2.93 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clean Docker Tags
This _PowerShell_ script shows and deletes unused _Docker_ tags from an [JFrog Artifactory](https://jfrog.com/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:
```powershell
Get-Help -detailed ./clean_unused_tags.ps1
```