Registry Cleaner¶
This is the Container Registry utility for cleaning obsolete images from the registry (collecting garbage).
It checks what's deployed on Racetrack environments, then it compares it with the images in the registry. If there are images in the registry that are not needed anymore, it will list them as candidates for removal.
-
Configure auth tokens for the registry, Racetrack tokens and update the list of active deployment environments. Copy
settings.dist.py
file tosettings.py
and update the values there. -
Activate project's virtual env:
. venv/bin/activate
-
Run the script:
./main.py list
to list candidate images for removal. Review candidates and ensure the list is fine. -
Do the cleansing:
./main.py list --delete