Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Script to cleanup your private Docker v2 registry.

Notifications You must be signed in to change notification settings

dansailer/docker-registry-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

docker-registry-cleanup

Script to cleanup your private Docker v2 registry.

Prerequisites

  • curl
  • jq
  • perl
  • sort
  • sed
  • cut

Install

Change the variable REGISTRY to your registry DNS and the variable REGISTRYDATA to the local storage folder of the REGISTRY. The script must be run on the server where the Docker Registry v2 is running.

Run

It will loop through all repositories and ask you which tags should be removed. Then it will run mortensrasmussen/docker-registry-manifest-cleanup to remove unused manifests. Finally it will run the Docker registry garbage collection to free up the storage.

About

Script to cleanup your private Docker v2 registry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages