Skip to content

Commit

Permalink
check docker cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Dec 13, 2023
1 parent 32c5ed4 commit cf22be4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cf22be4

Please sign in to comment.