Gitlab registry image cleaner
Recursive remove images by tag
without wait 200ok please (some images very big, and response is very long)
docker run -it \
--name gitlab_cleaner \
--restart=always \
-d -p 8888:8888 \
-e CLEAN_TOKEN='mysecret key' \
-v /var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/v2:/var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/v2 \
negash/gric python3 \
-m japronto clean_gitlab_registry.app \
--worker-num 24 --port 8888
-
remove tag recursive
curl
/group/my-mono-repo/feature-123?clean-token=TOKEN
remove all images with tag
feature-123
-
remove unique image
curl
/extra_path?clean-token=TOKEN&path=group/simple-repo/some_name:feature-123
remove one image with tag
feature-123