# PruneMate

PruneMate is a lightweight, self-hosted web app that keeps Docker hosts tidy by cleaning up unused resources on a schedule.

Canonical page: https://ourlocalhost.com/app/8141/prunemate

## Description

PruneMate is a lightweight, self-hosted web app that keeps Docker hosts tidy by cleaning up unused resources on a schedule. It removes old images, stopped containers, unused networks, volumes and build cache, with a preview mode before anything is deleted, protection rules for important resources, run history, and notifications when cleanup completes. It's aimed at homelab and self-hosting users who want their Docker hosts kept clean automatically rather than by hand, and it runs on both amd64 and arm64, including Raspberry Pi and Apple Silicon. Note that it uses Docker's own prune commands, so removed resources are gone for good — be especially careful with volumes, which can contain databases.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

60/100 (Good), based on 4 of 5 factors.
- Maintained: 75 (last commit 12 days ago)
- Popular: 53 (467 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 75 (no serious findings)

## Links

- Documentation: https://prunemate.org/installation.html
- Official website: https://prunemate.org
- GitHub: https://github.com/anoniemerd/PruneMate

## Common questions

### How do I enable login authentication for PruneMate?

Generate a password hash using the command shown in the compose file comment, then uncomment and set the PRUNEMATE_AUTH_USER and PRUNEMATE_AUTH_PASSWORD_HASH environment variables. Login includes brute-force/lockout protection and is optional but recommended.

### Why does the recommended setup include a docker-socket-proxy?

The proxy only allows through the specific Docker functions PruneMate needs, so the app never gets full control over your Docker host. It also pairs with hardening like a read-only filesystem, no capabilities, and no-new-privileges.

### Can PruneMate clean up Docker hosts other than the one it runs on?

Yes, it supports multiple hosts—you can clean up other Docker machines from the same interface, configured via PRUNEMATE_DOCKER_HOST (e.g. pointing at tcp://socket-proxy:2375).

### How can I protect specific containers or volumes from being deleted?

Add the prunemate.keep label to a resource to skip it, or set a protection rule to skip anything younger than a number of hours. For manual runs, volumes are only deleted after you type DELETE in the preview.

### What port does PruneMate use?

The container listens internally on 8080 and is published on host port 7676 by default, which you can change in your compose file.

### Will PruneMate delete my database volumes?

It can—PruneMate uses Docker's own prune commands and removed resources are gone for good, so be especially careful with volumes since they can contain databases. Use the preview mode and protection rules before enabling a schedule.

---
Source: Our Local Host (https://ourlocalhost.com/app/8141/prunemate), the self-hosted and open-source app directory.
