From 12c844339543c78864d6a4dbc9409cfc92393831 Mon Sep 17 00:00:00 2001 From: Yorick Date: Thu, 21 Mar 2024 00:04:52 +0000 Subject: [PATCH] Exit if Docker 20.10 --- ethd | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ethd b/ethd index 51b163ee..ffa8c8c8 100755 --- a/ethd +++ b/ethd @@ -3403,6 +3403,16 @@ if [ "${__old_compose}" -eq 1 ]; then exit 0 fi +if [ "${__old_docker}" -eq 1 ]; then + echo + echo "Docker version ${__docker_version} detected. This version is no longer supported." + echo "Please update to a current version. Supported versions can be seen at https://endoflife.date/docker-engine." + echo + echo "This should be as simple as \"sudo apt update && sudo apt dist-upgrade\" on Debian/Ubuntu" + echo "or updating Docker Desktop on macOS and Windows." + exit 0 +fi + if ! type -P whiptail >/dev/null 2>&1; then echo "Please install the package whiptail or newt before running ${__project_name}." exit 0 @@ -3441,12 +3451,3 @@ if [ "${__compose_upgraded}" -eq 1 ]; then echo "Optionally, you can switch to docker-ce." echo "Please see https://ethdocker.com/Usage/Prerequisites#switching-from-dockerio-to-docker-ce for instructions." fi - -if [ "${__old_docker}" -eq 1 ]; then - echo - echo "Docker version ${__docker_version} detected. This version no longer receives security updates." - echo "Please update to a current version." - echo - echo "This should be as simple as \"sudo apt update && sudo apt dist-upgrade\" on Debian/Ubuntu" - echo "or updating Docker Desktop on macOS and Windows." -fi