# template-janitor

template-janitor is a self-hosted infrastructure app. Find and clean up unused Docker templates on Unraid, and manage the rest from a web UI. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/9307/template-janitor

## Description

Find and clean up unused Docker templates on Unraid, and manage the rest from a web UI. Template Janitor is a friendly front end for removing unused templates - the same cleanup you can do from the Previous Apps tab in Community Applications, presented in one clean view with backups, template editing and container controls. It lists every template in /boot/config/plugins/dockerMan/templates-user and shows which ones belong to a container (matched by file name or the Name inside the XML) and which are unused. It safely deletes unused templates (a copy is always backed up first) with bulk actions, lets you edit templates as validated XML, clone, rename, back up and restore them, and can start, stop and restart containers. Backups are readable and writable by everyone by default so you can browse or move them over SMB; this can be changed with the Backups open to everyone setting. Designed for Unraid users who want to keep their Docker template folder tidy.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

39/100 (Low), based on 3 of 4 factors.
- Maintained: 72 (last commit 1 day ago)
- Popular: 0 (0 GitHub stars)
- Easy to install: 20 (1 install platform, Docker image)

## Links

- Documentation: https://hub.docker.com/r/qballjos/docker-template-manager
- Unraid: https://ca.unraid.net/apps/app_5d6152abb3020a96
- GitHub: https://github.com/rcodehub/template-janitor
- Official website: https://qballjos.github.io/docker-template-manager/

## Common questions

### How do I find the auto-generated API key after installing?

If you leave the API Key field empty during setup, the key is printed in the container log (Docker tab, container icon, Logs) and saved to appdata/template-janitor/config/api_key.

### What port does Template Janitor use and what volumes does it need?

It runs on port 8889 and needs the Docker socket (read-only), /boot/config/plugins/dockerMan/templates-user mounted to /templates, plus backup and config directories.

### Is deleting unused templates safe—what happens to the deleted files?

Cleanup is a dry run until you confirm, every deleted template is backed up first, and the tool refuses to run if Docker can't be reached. You can also restore templates from the backups.

### Can I access the backups over SMB from another machine?

Yes. Backups are readable and writable by everyone by default, so they can be browsed over SMB.

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