Sign inSign up

anoniemerd/prunemate

By anoniemerd

โ€ขUpdated 7 months ago

PruneMate - Docker image & resource cleanup helper, on a schedule!

Image
Databases & storage
0

1M+

anoniemerd/prunemate repository overview

prunemate-logo

โ PruneMate

Docker image & resource cleanup helper, on a schedule!

โ  Buy Me a Coffee โ 

โ PruneMate - Docker image & resource cleanup helper, on a schedule!

https://github.com/anoniemerd/PruneMateโ 

Built with Python (Flask) ยท Docker SDK ยท APScheduler ยท Gunicorn

Keep your Docker host tidy with scheduled cleanup of unused images, containers, networks, and volumes.

โ โœจ Features
  • ๐Ÿ• Flexible scheduling - Daily, Weekly, or Monthly cleanup runs with optional manual-only mode
  • ๐Ÿ”€ Schedule control toggle - Enable/disable automatic scheduling, so PruneMate only runs manually
  • ๐Ÿ” Prune preview - See exactly what will be deleted before executing manual prune operations
  • ๐ŸŒ Timezone aware - Configure your local timezone
  • ๐Ÿ•’ 12/24-hour time format - Choose your preferred time display
  • ๐Ÿณ Multi-host support - Manage multiple Docker hosts from one interface (requires docker-socket-proxy on remote hosts)
  • ๐Ÿงน Selective cleanup - Choose what to prune: containers, images, networks, volumes, build cache
  • ๐Ÿ—๏ธ Build cache cleanup - Reclaim significant space by pruning Docker builder cache (often 10GB+)
  • ๐Ÿ“Š All-Time Statistics - Track cumulative space reclaimed and resources deleted across all runs
  • ๐Ÿ  Homepage integration - Display statistics in your Homepage dashboard (works with authentication enabled)
  • ๐ŸŽจ Modern UI - Dark theme with smooth animations and responsive design
  • ๐Ÿ”’ Secure authentication - Optional login protection with password hashing and Basic Auth support
  • ๐Ÿ—๏ธ Multi-architecture support - Native amd64 and arm64 Docker images (Intel/AMD, Raspberry Pi, Apple Silicon)
  • ๐Ÿ”’ Safe & controlled - Manual trigger with preview and detailed logging
  • ๐Ÿ“ˆ Detailed reports - See exactly what was cleaned and how much space was reclaimed

โ Main Dashboard

The overall look and feel of the PruneMate dashboard


โ ๐Ÿณ Docker Compose :
services:
  prunemate:
    image: anoniemerd/prunemate:latest  # Supports amd64 and arm64
    container_name: prunemate
    ports:
      - "7676:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./logs:/var/log
      - ./config:/config
    environment:
      - PRUNEMATE_TZ=Europe/Amsterdam # Change this to your desired timezone
      - PRUNEMATE_TIME_24H=true #false for 12-Hour format (AM/PM)
      # Optional: Enable authentication (generate hash with: docker run --rm anoniemerd/prunemate python prunemate.py --gen-hash "password")
      # - PRUNEMATE_AUTH_USER=admin
      # - PRUNEMATE_AUTH_PASSWORD_HASH=your_base64_encoded_hash_here
    restart: unless-stopped
โ ๐Ÿณ Docker Run :
docker run -d \
  --name prunemate \
  -p 7676:8080 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v $(pwd)/logs:/var/log \
  -v $(pwd)/config:/config \
  -e PRUNEMATE_TZ=Europe/Amsterdam \
  -e PRUNEMATE_TIME_24H=true \
  --restart unless-stopped \
  anoniemerd/prunemate:latest

Tag summary

Content type

Image

Digest

sha256:c9b485b6bโ€ฆ

Size

49.5 MB

Last updated

8 months ago

docker pull anoniemerd/prunemate