Cleanuparr Docker deployment is the route most people take, because it keeps the app isolated, easy to update and consistent with the way Sonarr, Radarr and download clients are usually run. A single command pulls the image, maps the web port and stores settings in a folder you control, so the whole service can be rebuilt in seconds.

Why Docker Suits Cleanuparr

Cleanuparr talks to your *arr apps and download clients over their web APIs, so it does not need to live on the same host or share their install folders. A container gives it a clean runtime, a predictable network address and no leftover files when you remove it, which is exactly what a background maintenance service needs.

Docker also makes upgrades boring in the best way. Pulling a newer image and recreating the container keeps your configuration intact as long as the config folder is mapped to persistent storage on the host machine.

  • Consistent behaviour on Linux servers, NAS devices and Unraid
  • Simple rollback by switching to an older image tag
  • Easy networking with the containers already running your *arr stack

The Official Cleanuparr Image

The documentation points to an image hosted on the GitHub Container Registry rather than Docker Hub. Using the documented source matters, because copies uploaded elsewhere may be outdated or modified by someone outside the project.

ghcr.io/cleanuparr/cleanuparr:latest

The latest tag follows the newest release. If you prefer to upgrade only when you choose, replace it with a specific release tag listed on the GitHub releases page and change it deliberately when you are ready.

Running the Container with docker run

The project documentation provides a complete docker run example. It starts the container in the background, restarts it automatically after reboots and passes in the basic environment values.

docker run -d --name cleanuparr \
  --restart unless-stopped \
  -p 11011:11011 \
  -v /path/to/config:/config \
  -e PORT=11011 \
  -e BASE_PATH= \
  -e PUID=1000 \
  -e PGID=1000 \
  -e UMASK=022 \
  -e TZ=Etc/UTC \
  ghcr.io/cleanuparr/cleanuparr:latest

Replace /path/to/config with a real folder on the host, such as an appdata directory. Every other value can stay as shown for a first run and be adjusted once the web interface is reachable.

Understanding Each Setting

Most flags follow conventions shared by popular media containers, which makes them familiar to anyone who has deployed Sonarr or Radarr in Docker before.

SettingPurpose
-p 11011:11011Publishes the web interface; the left number is the host port
-v /path/to/config:/configKeeps settings and data outside the container
PUID / PGIDUser and group IDs used for file ownership
UMASKDefault permissions for files the app creates
TZTime zone used for schedules and log timestamps
BASE_PATHOptional URL prefix, useful behind a reverse proxy subpath

Choosing PUID and PGID

Run id on the host to see the numeric IDs of the account that owns your media and appdata folders. Matching those values prevents permission errors when Cleanuparr writes its config or moves orphaned files to another directory.

Mapping Download Paths

Basic queue cleaning works over APIs and needs no media folders. Features that inspect files on disk, such as orphaned file scanning, need the download directory mounted at the same path your download client uses inside its own container.

Networking with Your *arr Containers

If Sonarr, Radarr and your download client run on the same Docker network, Cleanuparr can reach them by container name, for example http://sonarr:8989. That avoids hard-coding IP addresses that change after a rebuild.

When the apps live on different hosts, use the server IP and published port instead. Either way, test each connection inside Cleanuparr before enabling any cleaning job, so a typo does not silently stop the cleanup from working.

Updating the Container Safely

Updates follow the usual Docker pattern: pull the new image, stop and remove the old container, then start it again with the same flags. Because settings live in the mapped config folder, nothing needs reconfiguring afterwards.

  • Back up the config folder before major version jumps
  • Read the release notes on GitHub for breaking changes
  • Check the logs after restart with docker logs cleanuparr

Securing the Container

Cleanuparr stores API keys and logins for every app it manages, which makes its web interface worth protecting. Keep the published port reachable only from your home network, or place the interface behind a reverse proxy that adds authentication and HTTPS.

Avoid running the container as root when PUID and PGID can do the job. Limiting what the container can touch on the host reduces the impact of any mistake in your cleanup rules or volume mappings.

  • Do not forward port 11011 directly on your router
  • Use a VPN such as WireGuard or Tailscale for remote access
  • Mount only the folders the enabled features actually need

Checking Logs and Health

Container logs are the quickest way to confirm Cleanuparr is doing its job. A healthy run shows each scheduled job starting, the number of items checked and any strikes or removals that followed.

Repeated connection errors usually mean a host name or API key changed after an update to another app. Fix the entry in the web interface, run the connection test again and watch the next scheduled run in the log.

Log message typeWhat it usually means
Connection refusedWrong host, port or the target app is stopped
UnauthorizedAPI key or password needs updating
Permission deniedPUID, PGID or folder ownership mismatch

Running Multiple Instances

One Cleanuparr container can manage several download clients and many *arr instances at once, so a second container is rarely needed. Keeping everything in one place also avoids two instances fighting over the same queue items.

Frequently Asked Questions

Conclusion

Cleanuparr Docker setups come down to three decisions: the official image, a persistent config folder and correct user IDs. Get those right, connect the container to the same network as your *arr apps, and updates become a quick pull and restart that never touches your carefully tuned cleanup rules.