DockerSelf-Hosting

dockcheck: See Which Docker Containers Have Image Updates, Without Pulling (Linux, Windows, Mac)

Before you start

  • 18 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#

dockcheck is a free Bash script that looks at every running container, asks the image registry whether a newer image exists, and prints a list, without pulling anything. Run it with -n and it only reports; run it without and it lets you pick what to update.

dockcheck official logo

Logo: Dockcheck project (extras/dockcheck_colour.png), GPL-3.0 (repository licence; no separate artwork grant found).

It suits a home server with a handful of Compose stacks. It can send the list to ntfy, Gotify, Telegram, email and others. We use it the careful way: check first, notify second, update by hand third.

WhatValue (official sources, read 3 December 2026)
Current versionv0.8.4, released 10 November 2026 (the main branch pointed at the same commit, 3b092ae, when we checked)
LicenceGPL-3.0 (LICENSE at the release tag; the README says "GNU GPL v3.0")
What you installOne script (about 36 KB) plus jq and regctl (Apache-2.0, a separate project)
Time neededAbout 25 minutes (our estimate, not measured)
PortsNone. It has no web page, nothing to open
Official docsgithub.com/mag37/dockcheck (the README is the documentation)

At a glance:

  • What it is: a script you run on the Docker host, not a container.
  • What it watches: running Compose containers. docker run containers are skipped unless you add -r.
  • Check-only: dockcheck.sh -n; add -i to send a message.
  • Selective: name containers, exclude some (-e), or check but never update some (-E).
  • No web UI: nothing to log in to.

dockcheck and Diun in two lines. Diun is a container that runs all the time, has its own schedule and only notifies. dockcheck is a script that runs once when a timer starts it, and can also update containers if you let it.

How it fits together#

A timer starts the script, the script reads your containers from Docker and asks each registry for the current digest of the image tag, then it prints or sends a list. Updating is a separate, manual run.

dockcheck flow: a cron or systemd timer starts dockcheck.sh with -n -i, the script reads the container list through the Docker CLI, asks the image registry for the digest only through regctl, sends the list of containers with updates to an ntfy server, you get a message and run dockcheck.sh again without -n to choose what to update

Drawn for this guide from the official README and script. The dashed step is manual: the check never updates.

A tag is the label of an image version (1.27.0, latest). A digest is the fingerprint of the exact image behind it. A tag can be rebuilt, so it can get a new digest. dockcheck compares your local digest with the registry's; the regctl docs describe image digest as a manifest "head" request, which returns headers and no layers.

It checks the tag you already use. With nginx:1.27.0 in your Compose file, it tells you when that exact tag is rebuilt, not when 1.28.0 exists.

Before you start#

Note: every domain, topic, token and user name on this page is a dummy example (like ntfy.example.com or change-me). Replace it with your own and keep real secrets out of Git.

SystemWhat to have
LinuxDocker Engine with the Compose plugin, Bash 4.3 or newer, git, curl, jq. Your user must be allowed to run docker
WindowsWindows 10 or 11, Docker Desktop with the WSL 2 engine, and a WSL 2 Linux such as Ubuntu. dockcheck is a Bash script: it runs inside WSL, not in PowerShell
MacDocker Desktop, Homebrew, and a new Bash from Homebrew. The macOS system Bash is 3.2, older than the 4.3 the README asks for

regctl is the one extra program. The script offers to download it on the first run, so we do not install it by hand.

Run in terminalbash
bash --version
docker --version
docker compose version
docker info > /dev/null && echo "docker access ok"

Checklist:

  • [ ] Bash prints version 4.3 or higher
  • [ ] docker info works as your normal user, without sudo
  • [ ] You know which containers must never be touched (databases, for instance)
  • [ ] A notifier is ready: an ntfy topic (see our ntfy guide)

Tested by DIY Lab Hub: not yet. Commands come from the official README and the script source at v0.8.4, read on 3 December 2026. We did not run them on a real machine. Windows and Mac are the least certain routes; we say so where it matters.

Step 1: Install dockcheck pinned to v0.8.4#

The README suggests downloading only dockcheck.sh from main. We clone the repository at the release tag instead: the notification templates live in a notify_templates folder that must sit next to the script, and a tag does not move.

Linux#

Run in terminalbash
sudo apt-get install -y git curl jq      # Debian/Ubuntu; use dnf or pacman on other systems
mkdir -p ~/docker_volumes/dockcheck/{logs,backups}
git clone --branch v0.8.4 https://github.com/mag37/dockcheck.git ~/docker_volumes/dockcheck/app
cd ~/docker_volumes/dockcheck/app
chmod +x dockcheck.sh
./dockcheck.sh -v

Git prints a "detached HEAD" notice; that is normal for a tag.

Windows (PowerShell)#

Run in terminalpowershell
wsl --install -d Ubuntu
wsl --list --verbose

wsl --install needs a restart the first time, and Ubuntu must show VERSION 2. In Docker Desktop open Settings, Resources, WSL Integration and switch Ubuntu on (full integration needs the WSL 2 engine, say the Docker docs). Then enter Ubuntu and run the Linux commands inside it:

Run in terminalpowershell
wsl -d Ubuntu

Mac (Terminal)#

Run in terminalbash
brew install bash git jq regclient
mkdir -p ~/docker_volumes/dockcheck/{logs,backups}
git clone --branch v0.8.4 https://github.com/mag37/dockcheck.git ~/docker_volumes/dockcheck/app
cd ~/docker_volumes/dockcheck/app
chmod +x dockcheck.sh
"$(brew --prefix)/bin/bash" ./dockcheck.sh -v

The script starts with #!/usr/bin/env bash, so the first Bash in your PATH runs it; the explicit path above makes sure it is the new one. With regclient from Homebrew the script finds regctl and skips its own download, which fetches a Linux build that is useless on a Mac.

Check it worked. The last command prints v0.8.4.

Tip: run the script once by hand before you schedule it. If regctl or jq is missing it asks "y: With packagemanager (sudo). / s: Download static binary. y/s/[n]". Answer s for regctl; it saves the binary next to the script. A cron job cannot answer.

Step 2: Run the first check (check-only)#

-n means "No updates; only checking availability without interaction." In the source it turns on automatic mode and turns off updating, so nothing is pulled or recreated. The capital -N is a different flag (Step 4).

Linux#

Run in terminalbash
cd ~/docker_volumes/dockcheck/app
./dockcheck.sh -n

Windows (PowerShell)#

Run in terminalpowershell
wsl -d Ubuntu -- bash -lc 'cd ~/docker_volumes/dockcheck/app && ./dockcheck.sh -n'

Mac (Terminal)#

Run in terminalbash
cd ~/docker_volumes/dockcheck/app
"$(brew --prefix)/bin/bash" ./dockcheck.sh -n

We did not run this, so we cannot show real output. The README shows output of this shape (names are from its example, ours will differ):

File contenttext
[##################################################] 5/5

Containers on latest version:
glances
homer

Containers with updates available:
adguardhome
syncthing
whoogle-search

Check it worked. You see a progress bar, a "latest version" list and an "updates available" list, then No updates installed. or No updates available. Nothing was changed.

Two things the lists hide: !name - not checked, no compose file means the container came from docker run. It sits in the "latest version" list but was not checked (the source prints that text); add -r to check it. And Containers with errors, won't get updated: lists failed registry checks (see Troubleshooting).

Tip: stopped containers are skipped. Add -s to include them; the README says they return to the stopped state after a recreation.

Step 3: Pick containers: include, exclude, label#

Everything here still uses -n, so it only reports. Example with dummy container names:

Linux#

Run in terminalbash
cd ~/docker_volumes/dockcheck/app
./dockcheck.sh -n nginx,homer
./dockcheck.sh -n -e postgres,nextcloud
./dockcheck.sh -n -E postgres

Windows (PowerShell)#

Run in terminalpowershell
wsl -d Ubuntu -- bash -lc 'cd ~/docker_volumes/dockcheck/app && ./dockcheck.sh -n -e postgres,nextcloud'

Mac (Terminal)#

Same commands as Linux (start the script with the Homebrew Bash, as in Step 2).

FlagWhat it does
names after the flagsCheck only those containers (comma-separated, no spaces)
-e a,bLeave them out completely
-E a,bCheck them and report, but never apply their updates later
-oShow only containers with updates
-lOnly containers that carry our label (below)

Permanent settings go in the config file (Step 4), for example Exclude="postgres,nextcloud" or ExcludeUpdate="postgres".

To opt containers in with a label, add it to the service in its own Compose file, then recreate the container:

File contentyaml
services:
  web:
    image: nginx:1.27.0
    restart: unless-stopped
    labels:
      - mag37.dockcheck.update=true
Run in terminalbash
docker compose up -d

The label only matters together with -l, and a label change needs the container recreated (README). The README documents three labels (update, only-specific-container, restart-stack) and none for exclusion.

Check it worked. ./dockcheck.sh -n -l prints "Label option active: Only checking containers with labels set." and only your labelled containers.

Step 4: Send the list to ntfy#

Notifications start with -i ("Inform"). The templates are shell files in notify_templates/; settings go into dockcheck.config, which the script reads from the script folder, ~/.config/ or ~/.config/dockcheck/ (v0.8.4 added the last locations).

Linux#

Run in terminalbash
cd ~/docker_volumes/dockcheck/app
cp default.config dockcheck.config
chmod 600 dockcheck.config
cat >> dockcheck.config << 'EOF'
NOTIFY_CHANNELS="ntfy"
NTFY_DOMAIN="https://ntfy.example.com"
NTFY_TOPIC_NAME="change-me-long-random-topic"
NTFY_AUTH=""
SNOOZE_SECONDS=86400
EOF

Windows (PowerShell)#

Open the WSL shell with wsl -d Ubuntu, run the Linux commands there and edit the file there too (nano dockcheck.config). A Windows editor can add line endings that Bash dislikes.

Mac (Terminal)#

Same commands as Linux.

Notes on the values (all dummies; replace them):

SettingMeaning
NTFY_DOMAINYour server with https:// and no trailing slash (the default.config comment says so)
NTFY_TOPIC_NAMEA long random name: on the public ntfy.sh anyone who guesses it can read it
NTFY_AUTHEmpty for no login; else user:password, or a token with a leading colon, :<your-ntfy-token>
SNOOZE_SECONDSNo repeat message for an update already reported within this time (86400 = one day; really 60 seconds less)

Now test. -N (capital) pretends every container has an update and sends a test message without checking any registry:

Run in terminalbash
./dockcheck.sh -N
./dockcheck.sh -n -i

Check it worked. The first command prints "Testing notifications by pretending everything got updates." and a message arrives in your ntfy app. The second sends a real message only if a real update exists.

Two messages from the v0.8.4 source: "Using v2 notifications with -i flag passed but no notify channels configured" means NOTIFY_CHANNELS is empty or the config was not found. "The notification channel template ntfy is enabled, but notify_ntfy.sh was not found" means the notify_templates folder is missing next to the script.

Tip: other channels work the same way: add the name to NOTIFY_CHANNELS (space-separated) and set its variables from default.config, such as GOTIFY_DOMAIN and GOTIFY_TOKEN. Edit the config, never the files in notify_templates/.

Step 5: Run it on a schedule#

Choose one scheduler. The command is the same: check only, notify, no colours (-m).

Linux#

With cron, run crontab -e and add (replace <your-user>):

Run in terminaltext
PATH=/usr/local/bin:/usr/bin:/bin
0 10 * * * /home/<your-user>/docker_volumes/dockcheck/app/dockcheck.sh -n -i -m >> /home/<your-user>/docker_volumes/dockcheck/logs/dockcheck.log 2>&1

The README has a similar cron line (-nix 10, that is -n -i -x 10). We keep -x at 1.

With a systemd timer instead (our example, not an official unit; replace the dummy user and paths). Save as /etc/systemd/system/dockcheck.service:

File contentini
[Unit]
Description=Check Docker image updates with dockcheck
Wants=network-online.target
After=network-online.target docker.service

[Service]
Type=oneshot
User=<your-user>
Environment=HOME=/home/<your-user>
Environment=PATH=/usr/local/bin:/usr/bin:/bin
ExecStart=/home/<your-user>/docker_volumes/dockcheck/app/dockcheck.sh -n -i -m

And /etc/systemd/system/dockcheck.timer:

File contentini
[Unit]
Description=Daily dockcheck image check

[Timer]
OnCalendar=*-*-* 10:00:00
RandomizedDelaySec=15m
Persistent=true

[Install]
WantedBy=timers.target
Run in terminalbash
sudo systemctl daemon-reload
sudo systemctl start dockcheck.service
sudo journalctl -u dockcheck.service -n 50 --no-pager
sudo systemctl enable --now dockcheck.timer
systemctl list-timers dockcheck.timer

Persistent=true makes the timer catch up on a run missed while the machine was off (systemd manual).

Windows (PowerShell)#

Use Task Scheduler with the program wsl.exe (replace <your-wsl-user>), daily at 10:00, while Docker Desktop runs. Arguments:

Run in terminalpowershell
wsl.exe -d Ubuntu -- /home/<your-wsl-user>/docker_volumes/dockcheck/app/dockcheck.sh -n -i -m

We did not test this. Without a running Docker Desktop the script stops at its Docker check.

Mac (Terminal)#

Cron works if its PATH contains Homebrew. In issue 167 the script worked by hand and failed in cron with "No docker binaries available, exiting."; the fix was the PATH:

Run in terminaltext
PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin
0 10 * * * /Users/<your-user>/docker_volumes/dockcheck/app/dockcheck.sh -n -i -m >> /Users/<your-user>/docker_volumes/dockcheck/logs/dockcheck.log 2>&1

Check it worked. Run the exact scheduled command by hand once, as the same user. Then look at the log or journalctl after the first scheduled run.

Tip: a scheduled job has a tiny PATH, no terminal and cannot answer questions. docker, jq, regctl and curl must be findable, and the user must be in the docker group.

Step 6: Update containers (the careful way, optional)#

Start this only after the notifications have run for a few days. Without -n the script lists containers with updates and asks which ones.

Linux#

Run in terminalbash
cd ~/docker_volumes/dockcheck/app
./dockcheck.sh -d 7 -b 7

Windows (PowerShell)#

Run in terminalpowershell
wsl -d Ubuntu -- bash -lc 'cd ~/docker_volumes/dockcheck/app && ./dockcheck.sh -d 7 -b 7'

Mac (Terminal)#

Same command as Linux (Homebrew Bash, as in Step 2).

Answer with numbers, ranges (1-2,4), a for all or q to quit. For each chosen container the script pulls the image and runs up -d for its Compose project, then asks about pruning. The flags used above and others from the README:

FlagWhat it does
-d 7Only update to images at least 7 days old; younger ones show with a + and their age. About twice as slow
-b 7Keep the previous image as a backup tag dockcheck/<name>:<time>_<tag> for 7 days. The -p prune is ignored then
-RPull the new images but do not recreate the containers

README rollback: take the container down, remove the new image (docker rmi <image> -f), find the backup with ./dockcheck.sh -B, docker tag it back to the real name, then docker compose up -d.

Tip: -b keeps old images, not data. A database that migrated its files during the upgrade needs its own backup first. Our docker-volume-backup guide shows one way.

Avoid -a and -y: they update everything without asking.

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

dockcheck has no web page and listens on no port, so there is nothing to put behind a reverse proxy, 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. For browser tools that do need HTTPS, see our Traefik and Caddy guides.

Security and testing#

ControlHow
Docker accessThe docker group is root-level power on the host. Run the script as your own user
Pin the versionThe tag v0.8.4 does not move; the README's main download does
No self-updateLeave out -u and AutoSelfUpdate: that "will pull new code and autorun it" (README)
SecretsTokens live in dockcheck.config: chmod 600, never in Git
Registry loginsregctl keeps its config in ~/.regctl/config.json by default (regclient docs): a job run by another user has other logins

The script calls GitHub on every run to ask for its latest version; with -n it only prints "New version available!". It opens no inbound port.

Quick tests:

Run in terminalbash
cd ~/docker_volumes/dockcheck/app
./dockcheck.sh -v
./dockcheck.sh -n -o
./dockcheck.sh -N
bash -n dockcheck.sh && echo "syntax ok"

Common mistakes#

MistakeWhy it happensDo this instead
Reading -n as "no notifications"The letter looks like "no notify". In the source -n sets "no updates, check only"-n -i checks and notifies. -n alone prints only
Downloading only dockcheck.sh, then -i sends nothing (issue 255: the maintainer asks for the notify_templates/ folder)The README's one-line install fetches the script onlyClone the repository (Step 1), or add notify_v2.sh and your channel's file in notify_templates/
Works by hand, fails in cron: No docker binaries available, exiting. (issue 167)Cron's PATH is short; on a Mac Homebrew's folder is missingSet PATH= at the top of the crontab (Step 5)
Expecting docker run containers to be checkedThey are skipped unless you add -r, and even then they are not recreatedUse Compose, or -r -n -i only to be told
Using Portainer stacks (issue 85): cd: /data/compose/62: No such file or directoryPortainer keeps the Compose files elsewhere; the script cannot enter that pathUse the check-only mode, and update through Portainer
Using the macOS system Bash (issue 290, closed July 2026: RestartedStacks[@]: unbound variable)Bash 3.2 is older than the 4.3 the README requiresbrew install bash and run with that Bash
Trusting the README's Docker Hub numbers (10 and 100 pulls per hour)They are out of dateDocker's page: 100 pulls per 6 hours without login, 200 with a free account
AI assistants: dockcheck.sh -a -n "to update without notifications"-a is automatic updates, -n is no updates, -i is the notifier. There is no no-notify flag-n -i to check and notify, -a -i to update and notify. Skip -a until you trust it
AI assistants: an exclusion label such as mag37.dockcheck.exclude or a --dry-run flagGuessed from other tools. The README documents three labels and no such flagUse -e name, -E name or Exclude= in the config file
AI assistants: wrong notifier names like NTFY_URL or NTFY_TOKENGuessed from other toolsThe names are NTFY_DOMAIN, NTFY_TOPIC_NAME and NTFY_AUTH (see default.config)

Tip: the !name - not checked, no compose file lines sit in the green "latest version" list. Read that list as carefully as the update list, or a container that was never checked looks up to date.

Tip: -e and -E look alike. A database that no script should update belongs in -E: you still hear about its updates.

Troubleshooting#

ProblemSolution
Nothing happens in cronRun the exact line by hand as the same user; read the log; check the PATH line
No message arrives./dockcheck.sh -N; check NOTIFY_CHANNELS, the topic and notify_templates/
Containers under "errors"The registry message follows the name; see below
Wrong config used-C ignores dockcheck.config once; DisplaySourcedFiles=true in it shows what is sourced
Need detailbash -x ./dockcheck.sh nginx (README); extras/errorCheck.sh also exists
Many timeouts-t 30 raises the per-container timeout (default 10 seconds)

Exact error texts#

  • Your current user does not have permissions to the docker socket - may require root / docker group. Exiting. is the v0.8.4 answer to issue 161, where a permission error was followed by a misleading "No updates available, exiting." Make sure docker info works for the user that runs the script.
  • failed to request manifest head docker.io/library/eclipse-mosquitto:latest: context canceled (issue 131): random failures when 32 checks ran in parallel (the default then). Run ./dockcheck.sh -n -x 1 -t 30.
  • xargs: bash: terminated by signal 13 (issue 149): a regression in a March 2025 version; the reporter went back to an older commit. Use the pinned v0.8.4.
  • local-flask - failed to request manifest head docker.io/library/local-local-flask:latest: unauthorized (also issue 149): the image exists only on your machine. The script itself says 'unauthorized' often means not found in a public registry. Exclude it with -e.
  • Sending discord notificationcurl: (22) The requested URL returned error: 400 (issue 255): on a system without /etc/hostname the payload was invalid. v0.8.4's notify_v2.sh falls back to the hostname command.

Known bugs (open, December 2026)#

Issue 298: self-update of the containerized dockcheck is broken (we do not use the container). Issue 205: a clash with the Synology Container Manager interface. The README's known issues: Compose profiles are not respected on re-creation, Portainer-created containers work badly. Nothing we found blocks a plain check-only setup.

Updates and backups#

Update dockcheck. Read the release notes, then move to the new tag:

Run in terminalbash
cd ~/docker_volumes/dockcheck/app
git fetch --tags
git checkout <new-version-tag>
./dockcheck.sh -v

What to back up. dockcheck.config and, if you use snooze, snooze.list. Nothing else is state: Docker holds the containers.

Linux and Mac#

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

File contentbash
#!/usr/bin/env bash
set -euo pipefail
base="$HOME/docker_volumes/dockcheck"
out="$base/backups/dockcheck-$(date +%F).tar.gz"
tar -czf "$out" -C "$base/app" dockcheck.config $(cd "$base/app" && ls snooze.list urls.list 2>/dev/null)
chmod 600 "$out"

Make it executable with chmod 700 and run it from cron at 03:00 (on a Mac write /Users/<your-user>/...):

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

Windows (PowerShell)#

Run the same script inside WSL (wsl -d Ubuntu -- /home/<your-wsl-user>/docker_volumes/dockcheck/backup.sh), scheduled in Task Scheduler at 03:00.

Restore test. Unpack the archive into a spare folder with tar -xzf, copy dockcheck.config into a fresh clone, and run ./dockcheck.sh -N. The test message should arrive.

Performance and resources#

The docs give no RAM or CPU figure and we measured none; time a run with time ./dockcheck.sh -n. -x N sets parallel checks (default 1; raise it slowly, see issue 131), -t N the registry timeout per container (default 10 seconds), and -d N makes a run about twice as slow.

Registry use: the README says checks are no Docker Hub pull-limit problem, only real pulls are. Docker's usage page (read 3 December 2026) agrees: a HEAD request does not count, a GET does; the limit is 100 pulls per 6 hours without login, 200 with a free Personal account. One caveat: when a digest differs, v0.8.4 also reads your platform's layer list to rule out false alarms, and regctl documents a platform-specific request as a GET. We did not measure whether that counts. With many containers, run docker login as the user that runs the script.

FAQ#

Does dockcheck pull images when it checks? No. It asks the registry for a digest and, when that differs, for the layer list of your platform. Images are pulled only in an update run.

Does it work without Docker Compose? docker run containers are skipped by default. With -r it checks and pulls their images but does not recreate them.

Can it run in a container? The README describes a Compose file for it, with the full Docker socket and project paths that match the host. Its self-update is currently broken (issue 298), so we kept to the script.

What about Podman? The README points to a separate fork, podcheck. We did not test it.

Diun or dockcheck? Diun for a permanent watcher with many providers; dockcheck for a plain script with an update mode.

Sources#

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

Try one of these