awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
spotify avatar

spotify/docker-gcArchived

0
View on GitHub↗
5,019 stars·437 forks·Shell·Apache-2.0·14 views

Docker Gc

docker-gc is a garbage collection tool for Docker hosts designed to reclaim disk space by automatically removing exited containers, unused images, and dangling volumes. It functions as a resource cleaner that optimizes host storage through the lifecycle management of orphaned or inactive container resources.

The utility manages image retention by preserving a minimum number of the most recent images per repository while deleting older versions. It employs configurable grace periods to determine when images and containers become eligible for deletion and supports pattern-based exclusion to prevent specific assets from being targeted.

The tool covers a broad range of maintenance operations, including state-driven resource selection to identify candidates for removal and the purging of temporary artifacts to maintain system health.

Features

  • Unused Container Resource Pruning - Provides a CLI tool for removing dangling images, stopped containers, and unused volumes to reclaim host disk space.
  • Container Maintenance - Automates the cleanup of temporary Docker artifacts to maintain the health of development and production servers.
  • Container Image Retention Policies - Implements chronological pruning of Docker images while respecting minimum retention counts per repository.
  • Container Storage Optimization - Prevents Docker host disk exhaustion by cleaning up orphaned containers and volumes.
  • Container State Filtering - Identifies candidates for removal by filtering for specific states like exited containers or dangling volumes.
  • Container Garbage Collection - Provides automated garbage collection for unused container images, exited containers, and dangling volumes.
  • Dangling Volume Cleanup - Purges dangling Docker volumes and unused resources to prevent host disk space exhaustion.
  • Repository-Aware Image Retention - Tracks the most recent images per repository to maintain a minimum count of preserved builds.
  • Unused Image Pruning - Removes unused or old Docker images to reclaim disk space on the host system.
  • Container Lifecycle Cleanup - Automatically deletes exited Docker containers based on age or specific grace periods.
  • Docker Engine API Clients - Utilizes the Docker Engine API to programmatically query and delete host containers, images, and volumes.
  • Docker - Purges inactive Docker resources based on configurable grace periods and retention rules.
  • Image Version Retention Management - Preserves a minimum number of recent Docker images while deleting older versions.
  • Image Version Retention - Keeps a specified minimum number of the most recent images for each repository to avoid deleting active versions.
  • Resource Identifier Matching Protections - Prevents specific Docker resources from being garbage collected by matching name patterns or unique identifiers.
  • Resource Deletion - Provides configurable grace periods to ensure only resources older than a specific threshold are deleted.
  • Container Utilities - Automated garbage collection for containers and images.

Star history

Star history chart for spotify/docker-gcStar history chart for spotify/docker-gc

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Docker Gc

Similar open-source projects, ranked by how many features they share with Docker Gc.
  • chadoe/docker-cleanup-volumeschadoe avatar

    chadoe/docker-cleanup-volumes

    1,437View on GitHub↗

    Docker cleanup volumes is a containerized system maintenance tool and shell script designed to scan host systems and delete unused Docker storage volumes. It reclaims disk space by identifying leftover data assets that are no longer attached to any active containers. The utility inspects container-graph dependencies to distinguish between active and orphaned storage items. It supports dry-run preview execution to simulate cleanup operations and review target volumes before any actual data deletion occurs. The software can be executed directly as a command-line shell script or run as a contai

    Shell
    View on GitHub↗1,437
  • eon01/dockercheatsheeteon01 avatar

    eon01/DockerCheatSheet

    3,938View on GitHub↗

    This project is a comprehensive reference guide and cheat sheet for the Docker CLI. It provides a structured collection of commands and documentation to help users manage container lifecycles, build images, and handle registries. The documentation specifically covers the orchestration of multi-container applications using Docker Compose and the management of scalable services across multiple nodes via Docker Swarm. It also includes detailed guides for configuring virtual networks, bridges, and ports to control container communication. The reference surface extends to container image administ

    View on GitHub↗3,938
  • docker/docker-pydocker avatar

    docker/docker-py

    7,184View on GitHub↗

    docker-py is a Python library and SDK that serves as a programmatic client for the Docker Engine API. It provides a programmatic interface for controlling containers, images, and clusters, allowing for the automation of containerized applications and engine resources. The library enables remote Docker administration through various transport methods, including Unix domain sockets, TCP ports, and encrypted SSH tunnels. It handles real-time data links by using WebSockets to stream input and output from active containers. The project covers container lifecycle control, image management for buil

    Python
    View on GitHub↗7,184
  • apocas/dockerodeapocas avatar

    apocas/dockerode

    4,910View on GitHub↗

    Dockerode is a Node.js library that provides programmatic management of Docker containers, images, and volumes by acting as a wrapper for the Docker Remote API. It enables JavaScript applications to interact with a Docker engine via Unix sockets or TCP network interfaces. The project covers container lifecycle management, including launching instances and executing commands with bidirectional input and output streaming. It also provides capabilities for building container images, pulling images from registries, and configuring virtual networks. Additional functionality includes the coordinat

    JavaScript
    View on GitHub↗4,910
See all 30 alternatives to Docker Gc→

Frequently asked questions

What does spotify/docker-gc do?

docker-gc is a garbage collection tool for Docker hosts designed to reclaim disk space by automatically removing exited containers, unused images, and dangling volumes. It functions as a resource cleaner that optimizes host storage through the lifecycle management of orphaned or inactive container resources.

What are the main features of spotify/docker-gc?

The main features of spotify/docker-gc are: Unused Container Resource Pruning, Container Maintenance, Container Image Retention Policies, Container Storage Optimization, Container State Filtering, Container Garbage Collection, Dangling Volume Cleanup, Repository-Aware Image Retention.

What are some open-source alternatives to spotify/docker-gc?

Open-source alternatives to spotify/docker-gc include: chadoe/docker-cleanup-volumes — Docker cleanup volumes is a containerized system maintenance tool and shell script designed to scan host systems and… docker/docker-py — docker-py is a Python library and SDK that serves as a programmatic client for the Docker Engine API. It provides a… eon01/dockercheatsheet — This project is a comprehensive reference guide and cheat sheet for the Docker CLI. It provides a structured… docker-archive-public/docker.kitematic — Kitematic is a graphical user interface for managing and running Docker containers on desktop operating systems. It… apocas/dockerode — Dockerode is a Node.js library that provides programmatic management of Docker containers, images, and volumes by… donknap/dpanel — dpanel is a web-based Docker management interface and remote server manager. It serves as a container lifecycle tool…