Fixed
-
Self-detection failed where
\$HOSTNAMEisn't an inspect-resolvable reference (#41, @NotRetarded). On some hosts — confirmed on QNAP Container Station —\$HOSTNAMEis an ID-looking string thatdocker inspectreports asno such object. Every self-detection path resolved the running container by inspecting\$HOSTNAMEdirectly, so all silently failed: Docksentry checked (and could try to update) itself via the regular flow instead of filtering itself out, and the self-update paths couldn't identify their own container (soAUTO_SELFUPDATEnever actually self-updated).Self-resolution is now centralised in
UpdateChecker.resolve_own_id()/inspect_self(): it inspects by\$HOSTNAME//etc/hostnamefirst (the normal fast path, unchanged on standard Docker) and, when that fails, falls back to scanning running containers for one whoseConfig.Hostnamematches\$HOSTNAME. All four call sites route through it (self-filter, auto-self-update, manual/selfupdate,/checkbadge).
Full 16-script regression sweep green.