From 72bc1b09d804cd70f303eb94611aca296600300d Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Fri, 21 Oct 2022 11:07:10 +0200 Subject: [PATCH] armbian-next: docker: don't even try to to prepare Docker, if it's not available --- lib/functions/host/docker.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/functions/host/docker.sh b/lib/functions/host/docker.sh index bc230ce3491f..b25fbbce4801 100755 --- a/lib/functions/host/docker.sh +++ b/lib/functions/host/docker.sh @@ -109,6 +109,13 @@ function docker_cli_prepare() { REQUIREMENTS_DEFS_ONLY=yes early_prepare_host_dependencies display_alert "Pre-game dependencies" "${host_dependencies[*]}" "debug" + ############################################################################################################# + # Stop here if Docker can't be used at all. + if ! is_docker_ready_to_go; then + display_alert "Docker is not ready" "Docker is not available. Make sure you've Docker installed, configured, and running; add your user to the 'docker' group and restart your shell too." "err" + exit 56 + fi + ############################################################################################################# # Detect some docker info.