Repository navigation
v1.9.0
homebutler said what changed on a box, but not when a tag had moved to another image, when the machine itself needed attention, or what had changed around a container that just stopped; report and doctor now name the image under a tag, doctor reads certificates, pending updates and a pending reboot, and incident_context answers for a crash with the changes around it.
Three things to check before upgrading. doctor --strict can exit 1 on a machine that passed before: a pending reboot, a pending security update, a failed package check, or a Proxmox certificate that has expired, is not yet valid, does not name the host or expires within 14 days now each raise a finding that --strict counts. doctor findings can carry a fourth severity, info, and summary an info count; status and the --strict exit code never count it. And doctor now asks the registry of each running container's image about its tag, an anonymous HEAD, which Docker Hub does not count as a pull, plus a GET of a multi-arch index only when Docker cannot say how the image was pulled, caching the answer in ~/.homebutler/registry/digests.json; doctor.image_updates.enabled: false turns it off, per machine. incident_context against a server needs that server on this release.
β οΈ Behavior changes
doctor --strictcan now exit 1 on a machine that passed before (#417). On Debian, Ubuntu, and RHEL-family systems withneeds-restarting: while a reboot is pending, while a security update is pending, or whenapt-get --simulateordnf -C check-updatefails. On any machine with a Proxmox endpoint, which is checked without being listed: its certificate has expired, starts in the future, does not name the host (not checked for afingerprintpin orinsecure: truealone), or expires within 14 days, or the certificate cannot be read while the API answers. Nothing else new warns: a stale package list, held packages, an empty dnf cache, and a system with no apt or dnf are said in apass.β No obvious issues found, and itsoverallfinding in--json, no longer appears, because the update check always adds a finding of its own; a script that looked for it should readstatusinsteaddoctorfindings can carry a new severity,info, andsummarya new count,info(#412). A script that switches onseveritymeets a fourth word; one that readsstatus, ordoctor --strict's exit code, sees no change, becauseinfonever sets the status. The dashboard lists info findings between warnings and passes and counts them asto know aboutdoctorasks registries about running images, and writes one file (#412). For each running container's tag it sends an anonymousHEADto that image's registry (Docker Hub, ghcr.io, or whichever the reference names), plus the anonymous token request those registries ask for first. For a container behind a multi-arch tag it may alsoGETthe tag's index, which Docker Hub counts as a pull, unless Docker says the image was pulled as an index. It keeps the answers in~/.homebutler/registry/digests.json. It is on by default;doctor.image_updates.enabled: falseturns it off. That setting is per machine: under--serverthe check runs on the server, so the server's config decides. A machine with no route to the registry adds at most ten seconds to the run and says which containers it could not check.doctor --no-savereads the cache without writing it; read-only MCP passes it, here and to a server, and asks a server whose homebutler predates the flag again without it, since such a server has no image check and writes no cache. Without a cache to read,--no-saveasks about a behind container on every run
β¨ Features
doctorsays when a running container's tag names a different image in its registry than the one it runs (#412):web: nginx:1.27 now names a different image in the registry, with the digest the tag names upstream and the one the container was pulled as. It says different, not newer: a tag moved back looks the same. A multi-arch tag is compared by its index digest, which is what Docker records on pull, and an image pulled by one platform's digest is matched against the index's manifests, so neither looks changed when it is not. A cached answer that disagrees with what runs is asked again first, so pulling the update inside the cache window does not leave a stale line; once a fresh answer has disagreed with the image running, it is not asked again until it expires. Containers pinned by digest, images built on the machine, images whose origin Docker before 29.2 does not report under the containerd store, and registries that want credentials, answer429or do not answer are listed underN running container(s) not checked against their registrywith a reason each. Answers are reused fordoctor.image_updates.cache_ttl, six hours by default, held to 5 minutes to 7 days. Nothing is pulled or restartedreportsays when a recreated container came back on a different image under the same tag (#411). Afterdocker compose pull && up -dwithnginx:latestin the compose file,docker psprintsnginx:latestbefore and after, so the line saidreplaced: web β recreated, 7d4a91f0aa11 β 91be0322bb22and nothing about the image. It is stillreplaced, and now readsreplaced: web β recreated, 7d4a91f0aa11 β 91be0322bb22, image 605c77e624dd β 1a2b3c4d5e6f under nginx:latest. Snapshots record each container's image ID underimage_ids, read with onedocker inspectper run; containers it does not answer for are compared by tag as before, andwarningsnames them. The first report after upgrading compares against a snapshot without image IDs, so its lines are the ones the last release wrotedoctorchecks TLS certificates: a newcertificates:list ofhost:portentries, plus every configured Proxmox endpoint without being listed (#417). A chain with any certificate expired or not yet valid, or a leaf that does not name the host it was reached by, isβ [exposure]; inside 14 days isβ οΈ; the rest share oneβline with the days each has left. It does not judge the issuer, so a self-signed Proxmox certificate in date passes. A Proxmox endpoint pinned withfingerprint, orinsecure: truewithoutca_file, is one homebutler's client does not verify, so its name is not checked and an expired certificate there isβ οΈabout other clients. Each endpoint gets 5 seconds, a single failed connection is retried inside them, and up to 8 are dialled at once. With no list and no Proxmox endpoint, nothing is reported.config validaterefuses an entry that is a URL or nothost:portdoctorcounts pending updates the way the package manager already knows them, without root and without the network (#417). On Debian and Ubuntu it readsapt-get --simulate dist-upgrade, counting a suite ending in-securityas security and naming held or phased packages; on Fedora and RHELdnf -C check-update,dnf -C updateinfo list --securityandneeds-restarting -rwhere that is installed. It never runsapt update, and the count says how old the list is, fromupdate-success-stampwhere it exists. A/var/run/reboot-requiredisβ οΈ A reboot is pending, with the local date and the packages that asked for it. dnf is not strictly read-only: dnf4 writes logs to/var/tmp/dnf-<user>-*and dnf5 as root rebuilds its.solvfiles, and as a user that is not root dnf5 would copy about 100 MB into~/.cache/libdnf5, so doctor does not count there and says so. On macOS, Windows, inside the container image, or on Linux with neither apt nor dnf, it saysβ Pending updates are not read on <system>. Under--serverit runs on that server, against its packages- the MCP tool
incident_contextanswers "why did this container stop" with one call (#414). Given an incident ID, or a target aswatch_listnames it for its latest incident, it returns the incident aswatch_historydoes, the report changes between the last snapshot before it and the first one after it, and those changes split intoabout_targetandother_changes. The window is placed at the restart (curr_started_at) when the incident has one earlier thandetected_at, becausewatch checkstamps the time it ran, which can be after a report that already saw the restarted container;anchored_onsays which. Two snapshots bracket the incident without ordering what changed between them, sonotesays on every comparison that a change may have come after it. A port is the container's when the snapshot attributed it to that container, sonew: :8001/tcp β now docker-proxylands under the container that published it, andpaperless-dbis not taken forpaperless. Changes are tied to a target only when the incident is known to be a Docker container's; otherwiseunattributedsays why and everything is inother_changes. When no report has run since, the comparison runs to the current state, read and not saved, andafter_is_currentandnotesay so; inside a container it is not read. With no snapshot before the incident, it comes back alone withcompared: falseand anotethat tells pruned snapshots from none. It is classedreadand offered under--max-risk read. On the command line it iswatch show --context(--logsadds the logs), andwatch show --container <name>shows a target's latest incident;incident_contextwith aserverrunswatch show --contextthere, so the server needs this release - incidents record the kind of monitor that wrote them, as
kind(docker,systemdorpm2) inwatch_history,watch history --json,watch check --jsonand the incident files (#414). The watch list cannot say after the fact: it allows a docker and a systemd target of the same name, and a target can be removed. Left out for Proxmox incidents and for incidents recorded before this release
π Fixes
- A systemd unit that failed and stayed failed was recorded with
curr_started_atset to the start of the run that died, the same asprev_started_at, so the incident read as if the unit had started again (#414).curr_started_atis now empty when the start did not change. Incidents already recorded keep the old value;incident_contextignores acurr_started_atequal toprev_started_at watch show <id>named an incident file by its full path, home directory included, when it could not be read; the error now names the incident and the reason (#414)- A report taken between
docker compose pullandup -dsaw the container's image as a bare ID, because the pull had moved the tag off it, and the next report called the recreateβ¦ 73aaf090f3d8 β nginx:latest. With image IDs on both sides it now reads as the same update as above (#411) watch --help,watch list,watch removeandwatch checkdescribed a Docker-only tracker; the help now names systemd units and PM2 apps where the command handles them, andcheck --helpsays it checks Docker targets only (#410)
π Documentation
- The README said an
imageline comes from pulling a new tag. Pulling and recreating is areplaced;imageis what a pull leaves behind when it moves the tag off a container that is still running, so Docker names that container's image by ID. The README,docs/report.md, the docs site and the agent skill now say so (#411)