Automatic cleanup of old versions in an image registry

On a schedule the scenario keeps the latest versions of each image, deletes the old ones, and emails a report to Mandrill.

  • Old versions removed automatically
  • The last ten are always kept
  • Space reclaimed via ssh
  • A report to Mandrill
SSHDocker Registry

How it works

Automating Mandrill and SSH takes no code: a ready-made scenario does the routine for you.

  1. Starts when: Scheduled Trigger
  2. Then: List Images
  3. Then: Extract Image Names
  4. Then: Retrieve Image Tags
  5. Then: Split Tags
  6. Check: Filter Valid Tags
  7. Then: Fetch Manifest Digest
  8. Then: Fetch Manifest Digest for Blob
  9. Then: Update Fields
  10. Then: Sort by Creation Date
  11. Then: Group Tags by Image
  12. Then: Identify Tags to Remove
  13. Then: Remove Old Tags
  14. Then: Execute Garbage Collection
  15. Then: Send Failure Notification Email
  16. Then: Send Notification Email

You can launch this Mandrill + SSH integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.