Skip to content

Commit 4ff191b

Browse files
committed
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: #509 Signed-off-by: Rejean Groleau <rejeangroleau@gmail.com>
1 parent 7040dd2 commit 4ff191b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,10 @@ do_install() {
554554
pkgs="$pkgs docker-compose-plugin docker-ce-rootless-extras$pkg_version"
555555
fi
556556
if version_gte "23.0"; then
557-
pkgs="$pkgs docker-buildx-plugin docker-model-plugin"
557+
pkgs="$pkgs docker-buildx-plugin"
558+
fi
559+
if version_gte "28.2"; then
560+
pkgs="$pkgs docker-model-plugin"
558561
fi
559562
if ! is_dry_run; then
560563
set -x

0 commit comments

Comments
 (0)