Diun can send a Docker image update alert to your phone through ntfy. It checks the registry on a schedule and alerts you when a tag changes or a newer version appears, depending on how you configure it. Your containers keep running until you choose to update them.
That matters more now because Watchtower, the tool many home servers used to update containers automatically, is no longer maintained. Its maintainers announced on 17 December 2025 that they were archiving containrrr/watchtower, the GitHub repository is now archived and read-only, and the last release is still v1.7.1 from November 2023. Diun is actively developed: v4.34.0 arrived on 19 November 2026.
Why announce updates instead of auto-applying them
Automatic updates feel convenient until a new image changes a config format, runs a database migration you did not plan for, or ships a bug on the day you are travelling. A container that updates itself at 4 AM is fine for a stateless tool and a gamble for anything holding your photos, passwords or smart home history.
An alert gives you time to read the release notes, back up the app’s data and apply the update when you can check that it starts again.
Watchtower did have a monitor-only mode, set with WATCHTOWER_MONITOR_ONLY or a per-container label, but its own documentation notes that the latest image is still pulled from the registry whenever the digest differs, because of Docker API limits. With the project archived and its maintainers telling users to assess forks themselves, it is a poor base for a new setup. Diun was built only to notify, so it fits the job without workarounds.
How Diun tracks Docker image updates
Diun runs as a small service with the serve command. On each scheduled run it asks one or more providers for the images to check. The Docker provider reads containers from the Docker socket; other providers cover Containerd, Kubernetes, Swarm, Nomad, Dockerfiles and a plain YAML file list. For every image, Diun compares the digest on the registry with what it saw last time and stores the manifest in a small bbolt database under /data.

Each image gets a status. new means Diun has not recorded it yet, update means the image on the registry changed since the previous scan, and unchange means nothing moved. By default Diun notifies on new and update, and the firstCheckNotif setting is off, so the very first scan fills the database quietly instead of sending one alert per container.
The compareDigest option is on by default and checks the digest with the registry before Diun downloads a manifest. Diun’s FAQ says it only fetches the manifest when an image has been updated or added, which keeps it well clear of Docker Hub pull limits for a normal home server. Notifications then go to any of 17 notifier types, from ntfy and Gotify to Discord, Telegram, email and a plain webhook.
What you need before you start
- A Linux host running Docker Engine with the Docker Compose plugin. Diun publishes images for linux/amd64, arm64, arm/v7, arm/v6, ppc64le, riscv64 and s390x, so a mini PC, a NAS or a Raspberry Pi all work.
- Your apps defined in Compose files, so you can add a label to each service and update them with two commands.
- An ntfy server and the ntfy app on your phone. If you want private topics and access tokens, run your own ntfy server with Docker. The public ntfy.sh server also works.
- About ten minutes. Diun has no web interface to configure; everything lives in one Compose file and one YAML file.
If you are still choosing hardware or deciding what to run, start with our home server or NAS beginner’s guide and come back once a few containers are up.
Step 1: Create an ntfy topic and token for Diun
Give Diun its own token so you can revoke it without touching other services. If you followed the Techzei ntfy guide, the alerts user already has write-only access to topics that start with homelab-, so a topic named homelab-updates needs no extra permission. Create a labelled token for Diun:
docker exec -it ntfy ntfy token add --label="diun" alertsCopy the tk_... value it prints. You can also create tokens in the ntfy web app under Account when you are signed in, which is handy if your ntfy container has a different name.

Subscribe to homelab-updates in the ntfy app on your phone, then send a test message with the token to confirm the topic and permission are right before Diun is involved:
curl -H "Authorization: Bearer tk_yourtokenhere" \
-d "Test from the Diun host" \
https://ntfy.example.com/homelab-updatesUsing the public ntfy.sh server instead? ntfy’s documentation is clear that without sign-up the topic name is essentially a password, so pick something long and random. Diun’s own example uses a topic like diun- followed by a UUID. Anyone who guesses the name can read your alerts, which would list every image you run.
Step 2: Install Diun with Docker Compose
Create a folder for Diun with a data directory for its database. The official image is crazymax/diun on Docker Hub, with the same build at ghcr.io/crazy-max/diun.
mkdir -p ~/diun/data
cd ~/diunSave this as compose.yaml. It follows the reference setup in Diun’s documentation, with settings kept in a config file instead of a long list of environment variables. Diun looks for diun.yml in /etc/diun/ at startup, so the file is mounted there.
name: diun
services:
diun:
image: crazymax/diun:latest
container_name: diun
command: serve
volumes:
- "./data:/data"
- "./diun.yml:/etc/diun/diun.yml:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "TZ=Europe/London"
- "LOG_LEVEL=info"
healthcheck:
test: ["CMD", "diun", "healthcheck"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
labels:
- "diun.enable=true"
restart: alwaysSet TZ to your own time zone so the schedule and log times match your clock. The diun.enable=true label means Diun also watches its own image, so you hear about Diun updates through the same channel.
Now create diun.yml next to it. Replace the endpoint, token and topic with yours:
watch:
workers: 10
schedule: "0 */6 * * *"
jitter: 30s
firstCheckNotif: false
runOnStartup: true
providers:
docker:
watchByDefault: false
watchStopped: true
notif:
ntfy:
endpoint: https://ntfy.example.com
token: tk_yourtokenhere
topic: homelab-updates
priority: 3
tags:
- whaleThe file holds a secret, so lock it down with chmod 600 diun.yml. Diun also accepts tokenFile instead of token if you prefer a Docker secret; its FAQ warns that secret files are read exactly as written, trailing newline included, so create them with printf '%s' rather than echo.
Mounting /var/run/docker.sock gives the container access to the Docker daemon. Use the official Diun image and limit socket access to tools you trust.
Start Diun and watch the first run:
docker compose up -d
docker compose logs -fYou should see Diun start, report how many images it found to analyze, record each one as a new image and then initialise the cron schedule with the time of the next run. No phone alert arrives yet, because firstCheckNotif is off.
Step 3: Label the containers Diun should watch
With watchByDefault: false, Diun ignores any container that does not carry diun.enable=true. That is the safer default: you opt in the apps you care about and skip throwaway test containers. Add the label to each service in your other Compose files:
services:
jellyfin:
image: jellyfin/jellyfin:latest
labels:
- "diun.enable=true"
# ports, volumes and the rest of your config stay as they areLabels are part of the container’s configuration, so run docker compose up -d in that project afterwards. Compose recreates a container when its configuration has changed, and Diun picks up the label on its next scan. watchStopped: true means created and exited containers are included too, which is useful for tools you only start occasionally.
If you would rather watch everything, set watchByDefault: true. To check what Diun is tracking at any time, ask the running server:
docker compose exec diun diun image listdiun image inspect --image followed by an image name shows the stored details for one image, and diun image remove clears an entry you no longer want tracked.
Step 4: Choose which tags Diun should watch
Out of the box Diun uses the tag watch mode: it watches exactly the tag or digest your container uses. For a container on latest or on a moving tag such as stable, that is all you need, because a new build changes the digest behind the tag and Diun reports an update.

Pinned version tags are different. If your Compose file says nginx:1.27.0, that tag rarely changes, so tag mode stays silent when 1.27.1 or 1.28.0 ships. Diun v4.34.0 added watch modes for this case:
| Label | Default | What it does |
|---|---|---|
diun.watch_mode | tag | tag watches only the configured tag or digest, all watches every repository tag, semver watches newer stable version tags and semver+prereleases includes prereleases |
diun.include_tags | None | Semicolon separated regular expressions; only matching tags are watched |
diun.exclude_tags | None | Semicolon separated regular expressions; matching tags are skipped |
diun.max_tags | 0 (all) | Caps how many repository tags are checked after sorting and filtering |
diun.notify_on | new;update | Which statuses send an alert: new, update, unchange |
diun.regopt | None | Name of the registry credentials to use for this image |
diun.platform | Automatic | Force a platform such as linux/arm64 |
For a pinned image, semver is usually the right choice:
services:
web:
image: nginx:1.27.0
labels:
- "diun.enable=true"
- "diun.watch_mode=semver"
- "diun.max_tags=5"Semver modes need a full version such as 1.5.0 or v1.5.0; an invalid or missing version logs an error and skips repository tags. And Docker variant suffixes such as -alpine count as prereleases, so images tagged 1.27.0-alpine need semver+prereleases plus an include_tags filter such as -alpine$.
Upgrading from an older Diun? The old diun.watch_repo=true label still works in v4.34.0 but logs a deprecation warning. Replace it with diun.watch_mode=all, and false with tag.
Step 5: Set how often Diun checks
The schedule setting takes a standard cron expression. Diun’s examples use 0 */6 * * *, every six hours, which is a sensible balance between fresh alerts and registry traffic. Some alternatives:
| Schedule | Runs | Good for |
|---|---|---|
0 */6 * * * | Every six hours | Most home servers |
0 9 * * * | Once a day at 9:00 | One tidy batch of alerts each morning |
0 9 * * 6 | Saturdays at 9:00 | A weekly update session |
jitter adds a random delay of up to that duration before each run (30 seconds by default), so several Diun instances do not hit a registry at the same second. runOnStartup is on by default and runs a check whenever the container starts. Diun’s docs say to remove schedule if you want to run Diun directly, which suits a one-off check from a script.
Diun can also report on itself. The watch.healthchecks block sends start and success pings to Healthchecks.io or a self-hosted Healthchecks instance, so you notice if the watcher silently stops. For the apps themselves, a status monitor such as Uptime Kuma covers whether each service is up after you update it.
Step 6: Tune and test the ntfy notifications
Diun’s ntfy notifier sends a sensible message with the image name, provider and a link out of the box, but a few fields are worth setting:
- priority: ntfy uses 1 (min) to 5 (max). Diun defaults to 3, a normal notification with sound. Set 2 if you want updates to wait silently in the drawer.
- tags: ntfy turns known tag names into emoji at the start of the title. Diun defaults to
package;whaleis a nice touch for Docker. - click: a URL that opens when you tap the alert, such as your Dockge, Portainer or Git repository page. It supports Diun’s templates.
- icon: defaults to the Diun logo.
- templateTitle and templateBody: rewrite the text using fields such as
.Entry.Image,.Entry.Status,.Entry.Image.HubLinkand.Meta.Hostname.
Adding the host name helps a lot once you run Diun on more than one machine:
notif:
ntfy:
endpoint: https://ntfy.example.com
token: tk_yourtokenhere
topic: homelab-updates
priority: 3
tags:
- whale
templateTitle: "{{ .Entry.Image }} has an update"
templateBody: |
Status: {{ .Entry.Status }} on {{ .Meta.Hostname }}
Image page: {{ .Entry.Image.HubLink }}Restart Diun with docker compose restart diun so it rereads the file, then send a test through every configured notifier:
docker compose exec diun diun notif testA test notification confirms Diun can reach ntfy. The first real alert still depends on which images and changes you’ve configured it to watch. If it does not, check the Diun logs first; a 401 or 403 from ntfy almost always means the token is wrong or lacks write access to the topic.
Other Diun notifiers
ntfy is a good default for self-hosters because the server and the topics are yours, but Diun ships notifiers for most chat and alert services. Each one goes in the same notif block, and you can enable several at once, for example ntfy for your phone plus email for a record.

| Notifier | What Diun needs | Good fit for |
|---|---|---|
| Gotify | Server endpoint and application token | Self-hosted push without ntfy |
| Discord | Webhook URL | Home lab channels you already read |
| Slack | Incoming webhook URL | Work or team Slack spaces |
| Telegram | Bot token and chat IDs | Phone alerts with no server to run |
| Matrix | Homeserver URL, access token or user and password, room ID | Self-hosted chat |
| SMTP host, port, from and to addresses | A searchable record of updates | |
| Pushover | Application token and user key | Paid, reliable phone push |
| Apprise | Apprise API endpoint plus a config key or URLs | Fanning out to many services |
| Signal REST | signal-cli-rest-api endpoint, sender number, recipients | Signal users |
| Teams and Rocket.Chat | Incoming webhook URL (Teams); endpoint, channel and user ID (Rocket.Chat) | Workplace chat |
| Webhook | Endpoint URL and HTTP method | Home Assistant, n8n or your own API |
| Script | Command to run, optional args | Custom actions on the Diun host |
| MQTT, AMQP, Elasticsearch | Broker or cluster address plus topic, queue or index | Feeding dashboards and automations |
Almost every secret field has a ...File twin, such as webhookURLFile or tokenFile, so you can keep credentials out of the main config.
Registry auth and Docker Hub rate limits
Docker Hub limits how many pulls you can make in a six-hour window. Docker’s current documentation lists 100 pulls per IPv4 address or IPv6 /64 subnet for unauthenticated users, 200 for signed-in Personal accounts and unlimited (subject to fair use) for Pro, Team and Business. A pull is a manifest request, and a multi-arch image counts once per architecture, but version checks do not count.

That is why Diun’s defaults are kind to your quota: compareDigest checks the digest first and the full manifest is fetched only when an image is new or changed. Two settings undo that advantage. A very tight schedule multiplies the checks, and repository watch modes (all, semver, semver+prereleases) fetch manifests for every selected tag, which Diun’s FAQ flags in bold. Use include_tags and max_tags whenever you watch repositories.
If you see toomanyrequests errors, or several machines share one home IP address, sign Diun in to Docker Hub with registry options. Use a Docker Hub personal access token rather than your account password, stored in files:
regopts:
- name: "docker.io"
selector: image
usernameFile: /run/secrets/dockerhub_user
passwordFile: /run/secrets/dockerhub_tokenThe image selector applies these credentials automatically to every image on docker.io. For a private registry, give the entry a name with the default name selector and point containers at it with a diun.regopt=myregistry label. Mount the secret files into the Diun container (for example under ./secrets) and keep them out of Git.
Step 7: Apply an update yourself
When an alert lands, the work takes a couple of minutes. Open the image’s release notes first (the Hub link in the alert is a quick route), check whether the release mentions breaking changes or migrations, and back up the app’s volumes if it stores anything you care about. Then update just that service from its project folder:
cd ~/jellyfin
docker compose pull jellyfin
docker compose up -d jellyfin
docker compose logs -f jellyfindocker compose pull downloads the new image without touching the running container. docker compose up -d sees that the image changed, then stops and recreates the container, keeping its mounted volumes. Watch the logs until the app reports it has started, then open the app and check that your data and settings are still there.
Old images stay on disk until you remove them. docker image prune removes dangling images, the untagged images left behind after an update, and asks for confirmation unless you add -f.
docker image pruneIf the new version misbehaves, change the image line back to the previous version tag, or to the previous digest in the form image@sha256:..., and run docker compose up -d again. Pinned version tags make this far easier than latest, which is a good argument for using semver tags and letting Diun’s semver mode tell you when a newer one exists. Updating Diun itself is the same two commands in ~/diun.
Diun vs Watchtower monitor-only vs WUD
Diun is not the only update watcher. What’s Up Docker (WUD) is the other actively maintained option, and plenty of existing setups still run Watchtower. WUD adds a web dashboard and optional update triggers. Existing Watchtower installations can still run in monitor-only mode.

| Diun | Watchtower (monitor-only) | WUD | |
|---|---|---|---|
| Project status | Active; v4.34.0 on 19 November 2026 | Archived; last release v1.7.1 in November 2023 | Active; 9.9.0 in November 2026 |
| Default behaviour | Notify only, never changes containers | Updates containers unless monitor-only is set | Monitor and notify; optional Docker and Docker Compose triggers can update |
| Containers watched by default | Only labelled (watchByDefault false) | All (--label-enable off) | All (WATCHBYDEFAULT true) |
| Default check interval | Your cron; docs use every 6 hours | Every 24 hours | Hourly cron |
| ntfy support | Built-in ntfy notifier | Through Shoutrrr notification URLs | Built-in ntfy trigger |
| Opt-in label | diun.enable=true | com.centurylinklabs.watchtower.enable=true | wud.watch=true |
| Interface | CLI and notifications | No dashboard; optional HTTP API mode | Web dashboard |
| Watches newer version tags | Yes (semver watch modes) | Not in its docs | Yes (semantic version analysis) |
| Pulls the image during a check | No; fetches manifests only on change | Yes, when the digest differs (monitor-only too) | Not in its docs |
WUD’s dashboard is the main reason to pick it: one page shows every container, its current version and what is available, and you can trigger updates from the UI if you configure a Docker trigger with automatic execution off. Diun has no dashboard at all, which is also its appeal; there is no extra web app to secure. Moving from Watchtower is mostly a label swap: if you used Watchtower’s opt-in com.centurylinklabs.watchtower.enable label, add diun.enable=true next to it on the same services.
Troubleshooting Diun
| Symptom | Likely cause | Fix |
|---|---|---|
| No alert after the first start | firstCheckNotif is off, so the first scan is silent | Run diun notif test; real alerts start with the next change |
| Diun finds 0 images | No containers carry diun.enable=true, or they were not recreated after adding it | Add the label and run docker compose up -d in that project |
toomanyrequests in the logs | Docker Hub pull limit for your IP | Add regopts credentials and space out the schedule |
| ntfy returns 401 or 403 | Wrong token, or no write access to the topic | Recreate the token and check ntfy access for that user |
| Semver mode never alerts | Configured tag is not a full version, or uses a suffix like -alpine | Pin a full version, or use semver+prereleases with include_tags |
| Flood of alerts for one image | watch_mode=all without filters | Add include_tags and max_tags |
| Deprecation warning about watchRepo | Old watch_repo setting from before v4.34.0 | Switch to watch_mode (all or tag) |
My take
For a home server, notify-then-update is the right default, and Diun is the cleanest way to get there. It is one small container with no web UI, it watches only what you label, and the ntfy notifier is a few lines of YAML. Pair it with pinned version tags and the semver watch mode and you get the best of both worlds: nothing changes on its own, yet you still hear about every release.
I would still let a few low-risk tools update freely if you really want automation, but not through an archived project. For everything that stores data, read the alert, take the backup, run the two Compose commands and watch the logs. It is a two-minute habit that turns updates from a surprise into a choice. If you want a dashboard or one-click updates from a browser, WUD is the alternative worth testing; if you just want to know, Diun is enough.
FAQ
Does Diun update my containers automatically?
No. Diun only detects and reports image changes. It never pulls the new image or recreates containers; you apply updates yourself with docker compose pull and docker compose up -d.
Is Watchtower still safe to use?
The containrrr/watchtower repository is archived and has had no release since v1.7.1 in November 2023, so it will not get fixes for new Docker versions or security issues. Existing installs may keep working, but its maintainers said they could not vouch for the forks, so for a new setup a maintained tool such as Diun or WUD is the better choice.
Will Diun use up my Docker Hub pull limit?
Rarely, with the default tag watch mode and a six-hour schedule. Diun checks digests first and fetches a manifest only when an image is new or changed, and Docker says version checks do not count as pulls. Repository watch modes can use far more requests, so filter tags and set max_tags, or sign in with regopts.
Can I watch images I do not run as containers?
Yes. Diun’s File provider reads a YAML list of images, and you can run it alongside the Docker provider. That is handy for base images in your own Dockerfiles or for tools you only run occasionally. There is also a Dockerfile provider that reads image references straight from Dockerfiles.
Do I need my own ntfy server?
No. Diun’s ntfy notifier defaults to the public https://ntfy.sh server, which works without an account if you choose a long, random topic name. A self-hosted server gives you private topics, access tokens and no dependence on a public service, which is why the setup above uses one.
- SourceDiun documentation
- Sourcentfy Docs: Publishing

