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 \| |