From 2c409e26ceeb64196025fc098585d3619e7c8658 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 11 Oct 2023 18:13:06 +0200 Subject: [PATCH] fix: [base] accept ``20.10`` docker version as valid --- precise/host/hooks/install.d/60-docker.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/precise/host/hooks/install.d/60-docker.sh b/precise/host/hooks/install.d/60-docker.sh index 4ea7545..0eeb060 100755 --- a/precise/host/hooks/install.d/60-docker.sh +++ b/precise/host/hooks/install.d/60-docker.sh @@ -14,7 +14,23 @@ fi if [ -n "$just_installed" ]; then need_restart= - docker_version=17 + + case $(lsb_release -is) in + Debian) + case $(lsb_release -rs) in + 10) docker_version=20.10;; + *) docker_version=17;; + esac + ;; + Ubuntu) + case $(lsb_release -rs) in + 22.04) docker_version=20.10;; + *) docker_version=17;; + esac + ;; + *) docker_version=17;; + esac + if ! [[ "$(docker --version)" == "Docker version $docker_version"* ]]; then version="$(apt-cache madison docker-ce | cut -f 2 -d \| |