Skip to content

Commit

Permalink
Exit if Docker 20.10
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Mar 21, 2024
1 parent 82cae4a commit 12c8443
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 12c8443

Please sign in to comment.