Avoid installing missing packages for version 23

On ubuntu bionic and focal (and debian buster too), the docker-model-plugin
package is missing. The suggestion was to just install the package named
docker-buildx-plugin in the version 23 check, while moving the missing
package docker-model-plugin to a new version 28.2 check. The number was
chosen because that package becomes available starting with version 28.2
on ubuntu jammy (while not available in version 28.1 on ubuntu focal).

See: https://github.com/docker/docker-install/issues/509

Signed-off-by: Rejean Groleau <rejeangroleau@gmail.com>
This commit is contained in:
Rejean Groleau committed 2025-07-16 08:22:42 -04:00
1 parent 7040dd2bf1
commit 4ff191b115
1 file changed
+4 -1
+4 -1
View File
@@ -554,7 +554,10 @@ do_install() {
pkgs="$pkgs docker-compose-plugin docker-ce-rootless-extras$pkg_version"
fi
if version_gte "23.0"; then
pkgs="$pkgs docker-buildx-plugin docker-model-plugin"
pkgs="$pkgs docker-buildx-plugin"
fi
if version_gte "28.2"; then
pkgs="$pkgs docker-model-plugin"
fi
if ! is_dry_run; then
set -x