← All guides

Updating Docker containers without breaking your home lab

Software · 7 min read

"Install Watchtower and never think about updates again." That advice fills beginner guides, and it fails twice. First, the tool itself: the original containrrr/watchtower repository was archived on December 17, 2025, read-only, discontinued, receiving no further updates or security patches, while holding access to the Docker socket, the one mount that means full control of the host. Running an unmaintained socket-holder because a tutorial said so is the opposite of the security hygiene updates are supposed to provide. Second, the philosophy: unattended updates were always a loan against the first breaking change. What survives the myth-check is a smaller, duller system, know what is running, sort it by how much damage a bad update can do, and let automation match that risk.

Why rollback fails before it starts

The rollback conversation usually begins after a bad update, which is exactly when it is too late to have it. Watchtower, even when it worked as advertised, has no rollback mechanism: if an update breaks something, the old image has to be pulled and redeployed by hand. And a manual rollback is only possible if the previous version is known. The rule from the updating guides that gets skipped is the plainest one: you cannot roll back if you do not know what version you were running. A compose file full of :latest tags is a lab with no rollback, whatever tool watches it. Pin every service to a version tag, keep the compose files under version control or in the lab's documentation, and the "way back" stops being a hope and becomes a one-line edit.

Three classes of container, three update rules

ClassExamplesRuleWhy
Stateless and disposableDashboards, converters, one-shot utilitiesMay auto-update, or ride the weekly manual passA bad update costs a recreate, not data
Stateful servicesPhoto library, password vault, media serverNotify-only: a tool reports the update, a human approves and runs itThe data directory is the service; an unattended restart mid-migration is the classic breakage
Databases and data storesPostgreSQL, MariaDB, the stores other services depend onNever auto-update. Manual, planned, with a backup firstA PostgreSQL major upgrade (16 to 17) requires a migration process, an auto-update across it breaks the database

The database row deserves its mechanism spelled out. Pin databases to a major-version tag, like postgres:16, which still receives patch updates but can never jump a major version on its own. The :latest tag crosses major versions silently, which converts a routine patch night into an unplanned migration with the old data format on disk and a new binary refusing it. Some applications add a second trap: stepped upgrade paths. Nextcloud, for example, must be upgraded through each intermediate major (25 → 26 → 27 → 28) rather than skipping, and databases between majors may need a dump and restore instead of an in-place upgrade. "Many versions behind" is a project, not an update.

The tools, checked

OptionWhat it doesStatus and fit
Watchtower (containrrr)Pulls new images and recreates containers automatically; has a --monitor-only mode that only notifiesOriginal repo archived December 17, 2025. Existing installs still run, but socket access argues for replacing it with something maintained; forks exist, though the original developer recommends no particular one
DIUNWatches registries on a schedule and sends a notification (Discord, Telegram, Ntfy, and more) when a tag gets a new versionNotify-only by construction, it has no code path that stops a container, which is the structural answer for stateful services. Can also watch images that are not currently running
What's Up Docker (WUD)Update detection with managed-update optionsNamed in current coverage as a maintained alternative to Watchtower; worth evaluating where some automation is still wanted
Manual compose passdocker compose pull and recreate, one service at a timeThe baseline every class falls back to, and the only method that reads release notes on the way

Both Watchtower and DIUN support label-based filtering, so the class system above is enforceable in configuration rather than by memory: label the stateful services as notify-only, the databases as hands-off, and let the tooling respect lines a tired human at midnight might not.

The update procedure, one service at a time

  1. Confirm the way back exists. The service's current version is pinned in its compose file, and a backup of its data directory (or its database) is current. If either is missing, the update waits, that is the entire lesson of the rollback section, applied.
  2. Read the release notes for anything crossing a major version. Majors carry the breaking changes: removed environment variables, changed config formats, new dependencies. Patch releases can usually ride; majors get read first.
  3. Update one service. Pull the new image and recreate just that service, never the whole stack at once. If something breaks, exactly one update is under suspicion.
  4. Verify like a user, not like an installer. The service starts, a real login succeeds, the feature the household actually uses works, and the logs show no new errors. "Container is up" is not verification.
  5. Roll back by editing the pin, if verification fails. Set the tag back to the recorded previous version, recreate, and confirm the service is healthy on the old version before investigating the new one.
  6. Record the new version in the same place the old one was recorded, so next month's rollback target is this month's version.

What success looks like: the service runs the new version, passes a real-use check, and the record of what it ran yesterday still exists. An update that cannot name its own previous version was not finished, even if nothing broke.

A cadence you can keep

The rhythm that fits a one-person lab, from the updating guidance: check weekly, patch security immediately, take feature updates monthly or when convenient. Critical, exposed services, the password manager, the reverse proxy, jump the queue when a security fix lands, because for those the risk runs the other way: the known-vulnerable version is more dangerous than the update. Everything else benefits from updates arriving in a deliberate batch, on a day chosen for it, one service at a time, which is to say, from the exact opposite of the myth this article opened with. Automation's real job in a home lab is not to apply updates. It is to make sure none are forgotten.

, Dex Carter, Tech Writer