Is Watchtower enough to keep your Docker containers safe?
Mostly, but not by itself. An auto-updater like Watchtower installs new images soon after they come out, and that fixes most security bugs without you doing anything. It can't help when there is no new image to install, or when it stops working without telling you.
First, check which Watchtower you run
The original containrrr/watchtower was
archived in December 2025 and gets no more
updates. It has full control of Docker on your host, so it's a bad thing to leave unmaintained.
docker ps --format '{{.Names}} {{.Image}}' | grep -i watchtower
If you see containrrr/watchtower, switch to something that's maintained:
- nickfedor/watchtower is a fork of the original.
- WUD tells you about new images and can install them if you set that up.
- Dockhand is a full Docker manager that can also update containers.
Five things an auto-updater can't fix
1. Nobody has rebuilt the image
The fix is out in Debian or Alpine, but the image you use still has the old package. Your updater says you're on the latest version, and it's right. See how old the image is:
docker image inspect --format '{{.Created}}' nginx:latest
Some images show a fake date like 1970, so check the project's releases if it looks odd.
This is how nextcloud:31 still has the php2shell bug in
PHP.
If you can't wait, you can build your own copy with the newest packages. This one is for images based on Debian or Ubuntu:
services:
myapp:
image: local/myapp-patched
build:
pull: true
dockerfile_inline: |
FROM ghcr.io/example/myapp:latest
USER root
RUN apt-get update && apt-get upgrade -y
Run docker compose build --no-cache myapp and then docker compose up -d myapp.
If the original image runs as another user, add a last USER line that sets it back. Your
updater won't handle this container anymore, so go back to the normal image once it has the fix.
2. The updater broke
Registries limit how often you can pull, logins expire and disks fill up. The updater then skips the container, and you won't notice unless you read its logs:
docker logs --since 48h watchtower 2>&1 | grep -iE 'error|warn|fail'
3. The version is pinned
Watchtower only looks for a newer image with the same tag. A tag like postgres:16.3 stays
on 16.3 forever, while postgres:16 gets every 16.x fix. Containers you told the updater to
skip have the same problem.
4. The app lives in a volume
The WordPress image copies WordPress into your volume the first time it starts and leaves it alone after that. A newer image brings a newer PHP, but the site stays on its old version until WordPress updates itself. Check what your site really runs:
docker exec wordpress grep 'wp_version =' /var/www/html/wp-includes/version.php
5. There is no fix yet
Attackers sometimes use a bug before a fixed image exists. All you can do then is take the container off the internet, or stop it until the fix is out. You can only do that if you hear about the bug.
How often does this happen?
I checked one homelab with 27 containers and daily auto-updates. 24 of them ran the newest image. One was behind because the registry was limiting pulls, and nobody had noticed. Two were held back on purpose.
Three containers had a bug worth an alert, and the updater would have fixed none of them. Either the container was held back, or it was on the newest image and that image hadn't been rebuilt.
That's only one homelab, so yours will look different.
What to do
- Keep an auto-updater, and make sure it's a maintained one.
- Use tags that get fixes, like
postgres:16. - Don't open a container to the internet unless it has to be. A VPN like WireGuard or Tailscale is safer.
- Get an alert when attackers start using a bug in something you run. This guide shows two free ways.
exploitwatch, the tool this site is about, does the last one and watches for all five problems above. It also tells you when your updater gets stuck. It doesn't update anything, so it runs next to Watchtower and doesn't replace it. You can try the live demo or get it on GitHub. If nothing you run is open to the internet, a working auto-updater is probably enough.