Skip to content

Instantly share code, notes, and snippets.

@sfwn
sfwn / 0 gc-step.md
Last active June 7, 2023 13:06
docker registry cleanup script : just reserve most recently 5 images per repo

you need jq first.

Steps:

  1. download the script && chmod +x
  2. enable "delete" inside docker registry container
/etc/docker/registry/config.yml

storage:
 delete: