Automated Docker Registry Cleaner
detail.loadingPreview
Streamline your Docker registry management with this automated cleaner. It intelligently identifies and removes old, unneeded image tags, freeing up valuable storage space and simplifying your registry maintenance.
About This Workflow
This n8n workflow provides a robust solution for automating the cleanup of your Docker registry. It begins by listing all available images and then retrieves the tags for each. The core logic identifies older image tags, excluding the latest tag and a defined number of recent ones, to ensure you retain the most important versions. It then systematically deletes these identified older tags, preventing storage bloat and reducing the complexity of managing your image repository. Notifications can be configured to keep you informed of the cleanup process.
Key Features
- Automated Tag Management: Intelligently identifies and removes old Docker image tags.
- Configurable Retention: Define how many recent tags to keep (defaults to 10).
- Registry Space Optimization: Frees up valuable storage by removing unreferenced image layers.
- Scheduled Execution: Runs automatically at a defined interval (e.g., daily).
- Notification System: Get alerted about removed tags.
How To Use
- Configure Registry URL and Credentials: Update
<<your-registry-url>>in thehttpRequestnodes and configure your Docker registry credentials undergenericAuthType: httpBasicAuth. - Set Schedule: Adjust the
Scheduled Triggernode to your desired cleanup frequency (e.g., daily at 1 AM). - Customize Tag Retention: Modify the
jsCodein theIdentify Tags to Removenode to change the number of recent tags to keep (currently set to 10). - Configure Email Notifications: Update the
toEmailandfromEmailin theSend Notification Emailnode to receive alerts about removed tags. - Test Thoroughly: Before enabling in production, test the workflow on a development or staging registry to ensure it behaves as expected.
Apps Used
Workflow JSON
{
"id": "93492fa5-250d-47de-92af-b314a28014c5",
"name": "Automated Docker Registry Cleaner",
"nodes": 23,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 93492fa5-250d...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.