Skip to content

fix(packages): do not call a Docker that is behind up to date - #15

Merged
inkly merged 2 commits into
mainfrom
fix/docker-held
Oct 9, 2026
Merged

inkly merged 2 commits into
mainfrom
fix/docker-held

Conversation

@inkly

@inkly inkly commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

The Docker line of the System packages check said nothing was pending, and the dashboard said 'up to date', for a Docker 28.0.4 whose package is on hold (or kept back by apt): apt lists no Inst line for such a package, so nothing was pending as far as the update is concerned, though a newer version exists in its sources.

The check now reads the installed and the candidate version from apt-cache policy of the engine package and, when the candidate is later (dpkg's own comparison) and no update is listed for it, says so: candidate and held (dpkg's status abbreviation starts with h) in the docker object. The manual command for a held package carries --allow-change-held-packages, which apt needs to upgrade a held package named on the command line. Tests for both cases and for a Docker that really is current.

inkly added 2 commits October 9, 2026 08:18
A docker-ce on hold (apt-mark hold), or kept back by apt, has no update listed and was shown
as up to date, though a newer version exists in its package sources. The Docker line now
carries that newer version (candidate) and whether the package is on hold, and the manual
command allows the change of a held package.
@inkly
inkly merged commit 60b39e1 into main Oct 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant