From cf22be47d4f3362cc10edd12b8ebb9cbfb778221 Mon Sep 17 00:00:00 2001 From: BenediktMKuehne Date: Wed, 13 Dec 2023 10:50:17 +0000 Subject: [PATCH] check docker cmd --- installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer.sh b/installer.sh index fd4f9a32..f65fe126 100755 --- a/installer.sh +++ b/installer.sh @@ -228,12 +228,12 @@ install_debs(){ if ! command -v gcc > /dev/null ; then apt-get install -y build-essential fi - # Docker + # Docker + docker-compose if [[ "${WSL}" -eq 1 ]]; then echo -e "\n${ORANGE}WARNING: If you are using WSL2, disable docker integration from the docker-desktop daemon!${NC}" read -p "Fix docker stuff, then continue. Press any key to continue ..." -n1 -s -r fi - if ! command -v docker > /dev/null && ! command -v docker-compose > /dev/null ; then + if ! command -v docker > /dev/null || ! command -v docker-compose > /dev/null ; then # Add Docker's official GPG key: apt-get install -y ca-certificates curl gnupg install -m 0755 -d /etc/apt/keyrings @@ -243,7 +243,7 @@ install_debs(){ echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "${VERSION_CODENAME}") stable" | \ - sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + tee /etc/apt/sources.list.d/docker.list > /dev/null apt-get update -y apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin fi