Updates & Patching¶
Keeping ~15 hosts and dozens of containers patched by hand doesn't scale. The split below automates the safe part and keeps a human in the loop for the rest โ using only free, open-source tools.
Who Patches What¶
graph TB
subgraph AUTO["๐ค Automatic, every night"]
UU["unattended-upgrades<br/>security updates only<br/>no auto-reboot"]
end
subgraph APPROVE["๐ค With approval"]
PM["PatchMon CE<br/>all other OS packages"]
TT["Tugtainer<br/>container images"]
end
subgraph OWN["โ๏ธ Their own updaters"]
APPL["OPNsense ยท TrueNAS<br/>Home Assistant ยท UniFi"]
end
UU --> LINUX["Every Linux box<br/>incl. Proxmox hosts"]
PM --> LINUX
TT --> DOCKER["Every Docker host"]
| Job | Tool |
|---|---|
| Security updates install themselves nightly | Debian/Ubuntu unattended-upgrades |
| See what's pending, approve and run everything else, audit trail | PatchMon CE |
| Container image updates | Tugtainer |
| Firewall, NAS, Home Assistant, UniFi | Their own built-in updaters |
| One view of everything pending | Grafana "Updates" dashboard |
unattended-upgrades¶
On every LXC and VM: the distro default (security + stable updates), no automatic reboot.
On the Proxmox hosts: security repo only, never reboot. Proxmox packages and kernels are updated by hand, one node at a time, so the cluster never loses quorum:
# /etc/apt/apt.conf.d/52goozlab-security-only
Unattended-Upgrade::Origins-Pattern {
#clear;
"origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
};
Unattended-Upgrade::Automatic-Reboot "false";
PatchMon CE¶
- An agent on every Proxmox node, LXC and VM reports pending packages hourly
- New LXCs enrol automatically through a Proxmox auto-enrolment token
- Host groups: PVE nodes, LXCs, VMs
- Patch runs go through Submit for approval โ release โ Runs & History
- Telemetry off; notifications to ntfy (host up/down events turned off โ too noisy)
PatchMon policies only set maintenance windows for runs you approve. Fully automatic recurring patching isn't a PatchMon feature yet, which is why unattended-upgrades does the automatic part.
Tip: after patching outside PatchMon, hit Fetch Report on the host so its counts refresh.
Tugtainer¶
- Server on the monitoring host, a lightweight agent on every other Docker host
- Checks every container for new images; updates are applied from one UI
- Make sure auto-check is on for every container โ two containers had it off and silently never got updates
Never let it update a VPN container alone. Containers that share a VPN container's network namespace must be recreated together. Pin that image and update the group with one docker compose up -d --force-recreate ....
Why Not Watchtower / WUD?¶
Watchtower updates blindly with no approval step, and the original project was archived in December 2025. What's Up Docker can see updates on remote hosts but can't apply them. Tugtainer does both, from one place.