DockerSelf-Hosting

Diun with Docker: Get Told When a Container Image Has an Update (Linux, Windows, Mac)

Before you start

  • 20 min read

Boxes marked Run in terminal are what you type; plain text explains why. Check what you need first

What you get in one minute#

Diun is a free, open-source tool that checks the Docker images behind your running containers on a schedule and sends you a message (ntfy, email, Gotify, Telegram, Discord, webhook and more) when one has an update. It never pulls, updates or restarts anything.

Diun official logo

Logo: the official Diun project (github.com/crazy-max/diun, file .res/diun.png at tag v4.34.0)

You keep full control: Diun tells you, you read the release notes, make a backup and update when you are ready. That suits databases and apps that migrate their data on an upgrade. Diun has no web page and opens no port, so there is nothing to put behind HTTPS.

WhatValue (official sources, read 1 December 2026)
Current versionDiun v4.34.0, released 19 November 2026 (previous: v4.33.1, 24 October 2026)
Image to pincrazymax/diun:4.34.0 (tag checked on Docker Hub; amd64, arm64, arm/v7, arm/v6, ppc64le, riscv64, s390x)
Time neededAbout 20 minutes (our estimate, not measured)
SizeAbout 22 MB compressed for amd64 (Docker Hub API)
PortsNone published
LicenceMIT (LICENSE at the release tag)
Official docscrazymax.dev/diun

Official Diun notification example: a chat message "Docker tag docker.io/crazymax/diun:edge available" with host name, provider, creation date, digest, platform and a Docker Hub link

Image: the official Diun README (github.com/crazy-max/diun, file .res/screenshot.png at tag v4.34.0). It dates from 2021, so today's text may differ a little.

At a glance:

  • What it is: one small container with a command line. No web page, no login.
  • What it watches: the images of your containers, not every image in docker image ls.
  • Where messages go: ntfy (see our ntfy guide), email, Gotify, Telegram, Discord, Slack, Matrix, webhook and others.
  • Not a scanner: it does not look for security holes. Our Trivy guide does that.
  • Not an updater: it has no setting to pull or restart anything.

Diun and Watchtower. The original containrrr/watchtower repository was archived on 17 December 2025. Its README now says "This project is no longer maintained", and its last release (v1.7.1) is from 11 November 2023. Its maintainers wrote that they cannot vouch for the forks. Watchtower updated your containers; Diun only tells you. They solve different problems, and we only confirmed Watchtower's status, not any fork.

How it fits together#

Diun reads the list of your running containers from the Docker socket, asks each image registry on a schedule whether the tag has changed, remembers what it saw in a small database, and sends a message through your notifier. You then update by hand.

Diun flow: containers with the label diun.enable=true are read through the Docker socket by the Diun container, which asks the image registry whether the tag changed, stores the digest in its data database and sends a message through a notifier such as ntfy or email to you, who then updates by hand

Drawn for this guide from the official docs. The dashed steps are manual: Diun never does them.

Two words: a tag is the label of an image version (1.27.0). A digest is the fingerprint of the exact image behind a tag. A tag can be rebuilt, so the same tag can get a new digest. Diun compares digests.

Before you start#

You need an always-on machine with Docker and Compose, plus somewhere to receive messages.

SystemWhat to have
LinuxDocker Engine and the Compose plugin
WindowsWindows 10 or later, Docker Desktop (WSL 2 backend), PowerShell
MacDocker Desktop, Intel or Apple Silicon
Run in terminalbash
docker --version
docker compose version

Checklist:

  • [ ] Both commands print a version
  • [ ] You know your time zone name, such as Europe/London
  • [ ] A notifier is ready: an ntfy topic (we use ntfy in this guide) or an email account (Step 7)
  • [ ] A password manager for the tokens

Tested by DIY Lab Hub: not yet. Commands come from the official docs and the source at v4.34.0, read on 1 December 2026. We did not run them on a real machine.

Tip: The public server ntfy.sh has no login for topics. Anyone who guesses your topic name can read your messages, so pick a long random name, or use your own server.

Step 1: Create the folders and the secrets file#

Everything lives under ~/docker_volumes/diun. Notifier settings go into a .env file that Compose reads, so tokens stay out of compose.yaml. The three values are names we chose; Diun does not read them itself.

Linux#

Run in terminalbash
mkdir -p ~/docker_volumes/diun/{data,config,logs,backups}
cd ~/docker_volumes/diun
cat > .env << 'EOF'
NTFY_ENDPOINT=https://ntfy.sh
NTFY_TOPIC=<your-ntfy-topic>
NTFY_TOKEN=
EOF
chmod 600 .env

Replace <your-ntfy-topic>. Leave NTFY_TOKEN empty for a topic that needs no login: the source adds the login header only when a token is set. Put the token there if your server needs one.

Windows (PowerShell)#

Codepowershell
$base = "$HOME\docker_volumes\diun"
foreach ($d in "data","config","logs","backups") {
  New-Item -ItemType Directory -Force "$base\$d" | Out-Null
}
Set-Location $base
@'
NTFY_ENDPOINT=https://ntfy.sh
NTFY_TOPIC=<your-ntfy-topic>
NTFY_TOKEN=
'@ | Set-Content -Encoding ascii .env

Mac (Terminal)#

Same commands as Linux.

Check it worked. ls -la (Windows: Get-ChildItem -Force) shows .env and the four folders.

Tip: Avoid $, #, spaces and quotes in values in .env: Compose reads them as syntax.

Step 2: Write the Compose file#

The official example uses latest, restart always and a socket mount without :ro. We pin the tag, use unless-stopped, add :ro as a small extra safety, and only watch containers that opt in.

Linux#

Run in terminalbash
cd ~/docker_volumes/diun
cat > compose.yaml << 'EOF'
services:
  diun:
    image: crazymax/diun:4.34.0
    container_name: diun
    hostname: <your-host-name>
    command: serve
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "diun", "healthcheck"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 60s
    volumes:
      - ./data:/data
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      - TZ=<your-timezone>
      - LOG_LEVEL=info
      - DIUN_WATCH_SCHEDULE=0 */6 * * *
      - DIUN_WATCH_JITTER=30s
      - DIUN_PROVIDERS_DOCKER=true
      - DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=false
      - DIUN_NOTIF_NTFY_ENDPOINT=${NTFY_ENDPOINT}
      - DIUN_NOTIF_NTFY_TOPIC=${NTFY_TOPIC}
      - DIUN_NOTIF_NTFY_TOKEN=${NTFY_TOKEN:-}
    labels:
      - diun.enable=true
EOF

Windows (PowerShell)#

Codepowershell
Set-Location "$HOME\docker_volumes\diun"
@'
services:
  diun:
    image: crazymax/diun:4.34.0
    container_name: diun
    hostname: <your-host-name>
    command: serve
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "diun", "healthcheck"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 60s
    volumes:
      - ./data:/data
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      - TZ=<your-timezone>
      - LOG_LEVEL=info
      - DIUN_WATCH_SCHEDULE=0 */6 * * *
      - DIUN_WATCH_JITTER=30s
      - DIUN_PROVIDERS_DOCKER=true
      - DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=false
      - DIUN_NOTIF_NTFY_ENDPOINT=${NTFY_ENDPOINT}
      - DIUN_NOTIF_NTFY_TOPIC=${NTFY_TOPIC}
      - DIUN_NOTIF_NTFY_TOKEN=${NTFY_TOKEN:-}
    labels:
      - diun.enable=true
'@ | Set-Content -Encoding ascii compose.yaml

Mac (Terminal)#

Same commands as Linux.

Replace <your-host-name> and <your-timezone>. The less obvious lines:

LineWhy
hostnameMessages show the container's host name, a random string by default (official FAQ). A fixed name tells you which machine sent it.
DIUN_WATCH_SCHEDULEA cron time: every 6 hours. The docs suggest it against registry limits. Remove it and Diun checks once and runs directly.
DIUN_WATCH_JITTERA random wait of up to 30 seconds before each run.
...WATCHBYDEFAULT=falseOpt-in: only containers with the label diun.enable=true are watched.
diun.enable=true on DiunWatches Diun's own image too.
:ro on the socketRead-only mount. It does not make the Docker API read-only (see Security).
${NTFY_TOKEN:-}Takes the token from .env, empty when unset.
No quotes inside valuesThe official docs quote the whole entry, - "TZ=Europe/Paris", which is fine. Quotes inside the value, - TZ="Europe/Paris", become part of the value (see Common mistakes).

Check it worked. docker compose config prints the file with your values and no error (docker compose config -q prints nothing unless something is wrong). Do not share that output: it shows the token.

Docker Desktop (Windows and Mac): we did not run this there. Mounting /var/run/docker.sock into a Linux container is the documented way, and Docker Desktop handles it inside its own Linux VM. If the container cannot reach Docker, the next step's log shows it.

Tip: docker inspect diun shows environment values, token included. If others can use your Docker, use DIUN_NOTIF_NTFY_TOKENFILE=/run/secrets/ntfy_token with a Compose secret instead (Step 6 shows how to build a secret file and mount it; the same pattern applies).

Step 3: Start Diun and read the log#

Linux#

Run in terminalbash
cd ~/docker_volumes/diun
docker compose up -d
docker compose ps
docker compose logs --tail=50 diun

Windows (PowerShell)#

Codepowershell
Set-Location "$HOME\docker_volumes\diun"
docker compose up -d
docker compose ps
docker compose logs --tail=50 diun

Mac (Terminal)#

Same commands as Linux.

We did not run this, so we cannot show real output. The official docs show lines of this shape (times and versions differ): INF Found 1 image(s) to analyze provider=docker, INF New image found ..., INF Cron initialized with schedule 0 */6 * * * and INF Next run in 2 hours 29 minutes (...).

Check it worked. docker compose ps shows diun running, and after the 60 second start period healthy. The log has no ERR line.

By default Diun sends no message the first time it sees an image (DIUN_WATCH_FIRSTCHECKNOTIF is false). It only remembers it. Silence on the first run is normal.

Step 4: Send a test message#

The Diun commands talk to the running server inside the container, so run them with docker compose exec.

Linux#

Run in terminalbash
cd ~/docker_volumes/diun
docker compose exec diun diun notif test
docker compose exec diun diun image list

Windows (PowerShell)#

Codepowershell
Set-Location "$HOME\docker_volumes\diun"
docker compose exec diun diun notif test
docker compose exec diun diun image list

Mac (Terminal)#

Same commands as Linux.

Check it worked. The test message arrives in your ntfy app within seconds. image list prints a table of the images Diun has stored; after the first run it should include docker.io/crazymax/diun (we did not run it).

Official Diun docs screenshot of a Gotify notification: "New image docker.io/crazymax/diun:latest has been added", with the text "Docker tag docker.io/crazymax/diun:latest which you subscribed to through file provider has been newly added"

Image: the official Diun docs (Gotify notifier page, file docs/assets/notif/gotify.png at tag v4.34.0). It shows how a message looks in Gotify; ntfy shows the same text.

Tip: Run notif test after every notifier change. An error here, such as 401 Unauthorized, is far easier to read than a silent day.

Step 5: Choose which containers to watch#

Because of WATCHBYDEFAULT=false, Diun ignores every other container until you add a label in that service's own Compose file. Example with a pinned nginx:

File contentyaml
services:
  web:
    image: nginx:1.27.0
    restart: unless-stopped
    labels:
      - diun.enable=true

Then recreate it so Docker applies the label.

Linux#

Run in terminalbash
cd <path-to-your-app>
docker compose up -d

Windows (PowerShell)#

Codepowershell
Set-Location <path-to-your-app>
docker compose up -d

Mac (Terminal)#

Same commands as Linux.

The pinned-tag trap. The default watch mode is tag: Diun watches only the tag you wrote. With nginx:1.27.0 it speaks up only when someone rebuilds that same tag. You will not hear about 1.27.1 or 1.28.0. The watch_mode label (new in v4.34.0) changes that:

ValueWhat Diun watches
tag (default)Only the configured tag or digest
semverNewer stable versions than yours. Needs a full version such as 1.27.0 or v1.27.0
semver+prereleasesThe same, including prereleases. Use it with tags like -alpine, which Diun counts as prereleases
allAll tags of the repository
File contentyaml
    labels:
      - diun.enable=true
      - diun.watch_mode=semver

For images that do not use clean version numbers, watch all tags but limit them. The $$ is how Compose writes a literal $:

File contentyaml
    labels:
      - diun.enable=true
      - diun.watch_mode=all
      - diun.include_tags=^1\.\d+\.\d+$$
      - diun.max_tags=10

The tag-listing modes fetch a manifest for every selected tag, which counts against registry limits (Step 6). Other labels from the docs: diun.notify_on (new;update;unchange), diun.exclude_tags, diun.sort_tags, diun.regopt and diun.platform.

Two more notes. Older guides use diun.watch_repo=true. It is deprecated in v4.34.0 and still works with a warning; use diun.watch_mode=all (and tag for old false). To watch every running container instead of opting in, set DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true in Diun's file and recreate Diun.

Check it worked. After the next run (or docker compose restart diun, since runOnStartup is on), docker compose exec diun diun image list shows the new image. We did not test semver; the docs say it picks "strictly newer" stable tags.

Tip: Stopped containers and images that only sit in docker image ls are not watched. The maintainer confirmed the second in issue 1550. DIUN_PROVIDERS_DOCKER_WATCHSTOPPED=true adds created and exited containers.

Step 6: Log in to Docker Hub (optional, wise with many images)#

The official FAQ says Docker Hub allows 100 pull requests per six hours anonymously and 200 for a free account. Diun fetches a full manifest only when an image is new or changed, but the tag-listing modes fetch many. We store the login in secret files. Diun reads ...FILE values exactly as written, trailing newline included, so we create them without one.

Linux#

Run in terminalbash
cd ~/docker_volumes/diun
printf '%s' '<your-dockerhub-username>' > config/dockerhub_user.txt
printf '%s' '<your-dockerhub-token>' > config/dockerhub_pass.txt
chmod 600 config/dockerhub_user.txt config/dockerhub_pass.txt

Windows (PowerShell)#

Codepowershell
Set-Location "$HOME\docker_volumes\diun"
Set-Content -NoNewline -Encoding ascii config\dockerhub_user.txt '<your-dockerhub-username>'
Set-Content -NoNewline -Encoding ascii config\dockerhub_pass.txt '<your-dockerhub-token>'

Mac (Terminal)#

Same commands as Linux.

Add these parts to compose.yaml (keep everything else):

File contentyaml
services:
  diun:
    secrets:
      - dockerhub_user
      - dockerhub_pass
    environment:
      - DIUN_REGOPTS_DOCKERHUB_NAME=docker.io
      - DIUN_REGOPTS_DOCKERHUB_SELECTOR=image
      - DIUN_REGOPTS_DOCKERHUB_USERNAMEFILE=/run/secrets/dockerhub_user
      - DIUN_REGOPTS_DOCKERHUB_PASSWORDFILE=/run/secrets/dockerhub_pass

secrets:
  dockerhub_user:
    file: ./config/dockerhub_user.txt
  dockerhub_pass:
    file: ./config/dockerhub_pass.txt

The selector image with the name docker.io makes these credentials apply to every Docker Hub image. Run docker compose up -d to apply them. For other registries add another REGOPTS block with its own name (a registry such as ghcr.io goes in as the selector name). Wildcards such as ghcr.io/org/* are not supported (maintainer, issue 1325). You can also mount your ~/.docker/config.json read-only; the FAQ describes it.

Tip: Create a Docker Hub access token with read-only rights instead of using your main password.

Step 7: Other notifiers: email and more#

You can swap ntfy for another notifier or use several at once. Email over SMTP with STARTTLS on port 587, added to environment: (put the password in .env as MAIL_PASSWORD):

File contentyaml
      - DIUN_NOTIF_MAIL_HOST=<smtp.example.com>
      - DIUN_NOTIF_MAIL_PORT=587
      - DIUN_NOTIF_MAIL_SSL=false
      - DIUN_NOTIF_MAIL_USERNAME=<smtp-user>
      - DIUN_NOTIF_MAIL_PASSWORD=${MAIL_PASSWORD}
      - DIUN_NOTIF_MAIL_FROM=<[email protected]>
      - DIUN_NOTIF_MAIL_TO=<[email protected]>

The docs say SSL should be false in most cases, because login upgrades with STARTTLS. Servers that want implicit TLS (usually port 465) need true. MAIL_TO takes several addresses separated by commas.

NotifierMain variables (from the docs)
GotifyDIUN_NOTIF_GOTIFY_ENDPOINT, DIUN_NOTIF_GOTIFY_TOKEN
TelegramDIUN_NOTIF_TELEGRAM_TOKEN, DIUN_NOTIF_TELEGRAM_CHATIDS
DiscordDIUN_NOTIF_DISCORD_WEBHOOKURL
WebhookDIUN_NOTIF_WEBHOOK_ENDPOINT, DIUN_NOTIF_WEBHOOK_METHOD

You can change the text with Go templates. This title uses two documented fields:

File contentyaml
      - DIUN_NOTIF_NTFY_TEMPLATETITLE={{ .Entry.Image }} has news on {{ .Meta.Hostname }}

Apply any change by recreating Diun, then test it.

Linux#

Run in terminalbash
cd ~/docker_volumes/diun
docker compose up -d
docker compose exec diun diun notif test

Windows (PowerShell)#

Codepowershell
Set-Location "$HOME\docker_volumes\diun"
docker compose up -d
docker compose exec diun diun notif test

Mac (Terminal)#

Same commands as Linux.

Put it behind HTTPS with Traefik? You do not need to#

Diun serves no web page and publishes no port. Its command line talks to the server inside the container over an internal gRPC port (42286 by default) that we never publish. There is nothing to put behind Traefik or Caddy, at home or on a server with a domain.

With Traefik#

No labels or routes are needed.

Without Traefik: Caddy#

No reverse_proxy line is needed for the same reason. If you later turn on the optional Prometheus metrics, the official docs warn that the endpoint has no login unless you set a token, and show how to scrape it over the internal Compose network without publishing a port. For browser tools with HTTPS, see our Dockge, Komodo or Portainer guides.

Security and testing#

ControlHow
Docker socketIt gives root-level power over the host. :ro only stops file changes on the socket file. It does not stop a program from sending write commands to the Docker API
Socket proxyThe docs have an endpoint setting for another Docker address. Users have paired it with a socket proxy over TCP (issues 1216 and 1225), but the official docs do not describe that, so we give no recipe
SecretsTokens in .env or secret files with chmod 600, never in compose.yaml or Git
Data folderdata holds the list of images you run: keep it private
NetworkDiun only calls out, to registries and your notifier. No inbound port

A proxy such as Tecnativa's docker-socket-proxy states in its README that access to the socket "could mean giving root access to your host". That is why we keep Diun's mount to the one job it needs.

Quick tests:

Run in terminalbash
cd ~/docker_volumes/diun
docker compose ps
docker compose exec diun diun healthcheck
docker compose exec diun diun notif test
docker compose exec diun diun image list

Common mistakes#

MistakeWhy it happensDo this instead
No message on the first runDIUN_WATCH_FIRSTCHECKNOTIF is false by defaultExpect silence once. Set it to true only if you want first-time messages
Only Diun itself shows up in image list (issue 1528)WATCHBYDEFAULT is off and the other containers have no labelAdd diun.enable=true, or set WATCHBYDEFAULT=true
Expecting images from docker image ls (issue 1550)The Docker provider reads containers onlyRun them as containers, or use the file provider
A container started with a Compose profile is not found (issue 1416)Reported without a confirmed cause; closed as staleTest with a plain service first, then add the profile
no such host after setting an endpoint (issue 1216)Quotes around the value inside a list-form environment: entry became part of the valueWrite - DIUN_PROVIDERS_DOCKER_ENDPOINT=tcp://<host>:2375, or quote the whole entry
401 Unauthorized from notif test with a token file (issue 1531)The editor added a newline, and Diun reads files as they areCreate files with printf '%s' or Set-Content -NoNewline
too many requests to registry (issue 731)Docker Hub limits anonymous requestsLog in (Step 6), keep a 6-hour schedule, limit tags
Registry login ignored for ghcr.io/org/* (issue 1325)Wildcards are not supportedUse the exact registry or namespace as the selector
Cannot reach a socket proxy at start (issue 1225)Diun started before the proxyAdd depends_on: for the proxy
A pinned tag never reports new versionsDefault mode is tagUse diun.watch_mode=semver (Step 5)
Using diun.watch_repoIt is the old name, deprecated in 4.34.0Use diun.watch_mode
AI assistants: diun.watch_repo, watchRepo, or latest tags in the compose fileOlder guides, and the official examples themselves, still use themUse diun.watch_mode and pin crazymax/diun:4.34.0
AI assistants: "Diun will update your containers" or an auto-update optionMixed up with WatchtowerDiun only notifies. We found no update setting in the docs
AI assistants: ":ro makes the Docker socket read-only"Folk wisdomIt does not limit the API. Treat the socket as root access

Tip: After adding or changing a diun.* label, run docker compose up -d in that app's folder. Editing the file alone does not change a running container.

Tip: Leave DIUN_WATCH_COMPAREDIGEST at true (the default). The docs strongly recommend it to save Docker Hub requests.

Troubleshooting#

ProblemSolution
Container is unhealthy or restartingdocker compose logs --tail=100 diun and docker compose exec diun diun healthcheck
Labels or variables seem ignoreddocker compose config shows what Compose really expanded (do not share it)
Need more detailSet LOG_LEVEL=debug, run docker compose up -d, read the log again
Notifier silentdocker compose exec diun diun notif test shows the HTTP or SMTP error
A container is missing from image listCheck its label, that it is running, and that you recreated it
Cannot connect to the Docker daemon on Windows or MacStart Docker Desktop first, then docker compose restart diun

Exact error texts#

  • Cannot create image closer: too many requests to registry: the registry answered HTTP 429. Log in to the registry and widen the schedule (official FAQ).
  • failed to decode configuration from file: field docker uses unsupported type: invalid: in diun.yml the docker: provider is empty. Write docker: {} (official FAQ).
  • ERR Cannot create Docker client error="Cannot connect to the Docker daemon at tcp://dockerproxy1:2375. Is the docker daemon running?" (issue 1225): Diun started before its socket proxy. Use depends_on.
  • WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" (issue 1325): the registry login was wrong, or the selector used a wildcard.
  • no image found in manifest list for architecture ...: usually the file provider on a platform the image does not have. Set the platform (official FAQ).

Known bugs (open, December 2026)#

Issue 998: notify_on=new sent messages for updated tags after the digest check arrived in 4.26; on 15 November 2026 the maintainer asked for a retest on v4.33.0 with LOG_LEVEL=debug. Issue 1325: reporters see sporadic DNS errors such as server misbehaving for lscr.io. Issue 1624: a feature request for retries of webhook and mail notifications. We found nothing that stops a normal install.

Updates and backups#

Update Diun. Read the release notes and the migration page for the version you jump to (v4.34.0 has one for watchRepo). Change the tag, then:

Run in terminalbash
cd ~/docker_volumes/diun
docker compose pull
docker compose up -d
docker compose exec diun diun --version

Update the apps Diun tells you about. Read that app's release notes, back up its data, change its pinned tag, then docker compose pull and docker compose up -d in its folder. See our lazydocker guide for a terminal tool that makes this faster.

What to back up. Only .env, compose.yaml and data. The data folder holds Diun's memory of what it has seen. Without it, Diun starts fresh and may send "new image" messages again. That is our reading of the docs, not a tested restore. For volume backups of other apps see our docker-volume-backup guide.

Linux and Mac#

Save as ~/docker_volumes/diun/backup.sh:

File contentbash
#!/usr/bin/env bash
set -euo pipefail
base="$HOME/docker_volumes/diun"
out="$base/backups/diun-$(date +%F).tar.gz"
tar -czf "$out" -C "$base" .env compose.yaml data
chmod 600 "$out"

Run chmod 700 on it and add this line with crontab -e (on a Mac write /Users/<your-user>/...):

File contenttext
0 3 * * * /home/<your-user>/docker_volumes/diun/backup.sh

Windows (PowerShell)#

Save as $HOME\docker_volumes\diun\backup.ps1:

Codepowershell
$base = "$HOME\docker_volumes\diun"
$out = "$base\backups\diun-$(Get-Date -Format yyyy-MM-dd).tar.gz"
tar.exe -czf $out -C $base .env compose.yaml data

In Task Scheduler run powershell.exe -NoProfile -File <full-path-to-the-script> daily at 03:00.

Restore test#

Copy the archive to a spare machine or folder, unpack it, then:

Run in terminalbash
docker compose up -d
docker compose exec diun diun image list

The list should show your images again.

Performance and resources#

The docs give no minimum RAM or CPU, and we measured none. Run docker stats diun on your host. The image is about 22 MB compressed. Two settings set the load: DIUN_WATCH_WORKERS (default 10) and the schedule. The tag-listing modes (all, semver) make many more registry requests than tag. Since v4.34.0 the option diun.assume_immutable_tags=true skips tags that are already stored. Its limit, from the docs: it will not notice a rebuilt tag, a deleted image or a platform change.

FAQ#

Does Diun update my containers? No. It sends messages. It never pulls images, edits Compose files or restarts containers.

Can I watch images that are not running? Not with the Docker provider. It reads containers. Stopped ones are included with DIUN_PROVIDERS_DOCKER_WATCHSTOPPED=true. The file provider lets you list any image by hand.

What about Watchtower forks, What's Up Docker or Renovate? We only confirmed that the original Watchtower is archived. The others are different tools that we did not test for this guide.

Can I use it on several hosts? Run one Diun per Docker host, give each its own hostname:, and point them all at the same notifier. The host name in each message tells you which machine it came from.

Why did I get a message for a tag I pinned? The tag was rebuilt. Diun compares digests, so a new build under the same tag, for example to patch a system library, is reported as an update.

Sources#

Checked against the official docs on 2026-12-01. Nothing was run on a real machine by DIY Lab Hub; the commands come from the docs, the source and the issues above.