Templates / Docker registry cleanup workflow

Docker registry cleanup workflow

Ready for 3.0

by Muzaffer AKYIL · 3,805 views · created 2025-02-01 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 16 nodes and runs on a schedule (every day at 01:00). It uses only n8n's built-in nodes.

How it runs

Trigger: On a schedule (every day at 01:00).

  1. List Images (HTTP Request): calls an HTTP API
  2. Extract Image Names (Code): runs custom JavaScript code
  3. Retrieve Image Tags (HTTP Request): calls an HTTP API
  4. Split Tags (Split Out): splits a list into separate items
  5. Filter: keeps only the items that match a condition
  6. Fetch Manifest Digest (HTTP Request): calls an HTTP API
  7. Fetch Manifest Digest for Blob (HTTP Request): calls an HTTP API
  8. Update Fields (Edit Fields (Set)): sets 4 fields: name, tag, created…
  9. Sort: sorts the items
  10. Group Tags by Image (Code): runs custom JavaScript code

…plus 5 more steps. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Docker Registry Cleanup Template This template is designed to automatically clean up old image tags in the Docker registry and perform garbage collection. Features - List all images in the registry - Preserve the last 10 tags for each image (latest tag is…

Excerpt from Muzaffer AKYIL's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.