Skip to content

Commit

Permalink
fix docker source install
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Aug 2, 2024
1 parent 7a039fc commit 8d11664
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,20 +258,20 @@ install_debs(){
# Add Docker's official GPG key:
apt-get install -y ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
# shellcheck source=/dev/null
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" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | 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
# alias for compose to stay backwards comp
if docker --help | grep -q compose; then
alias docker-compose="docker compose"
if ! command -v docker-compose > /dev/null ; then
if docker --help | grep -q compose; then
alias docker-compose="docker compose"
fi
fi
# python3-dev
if ! dpkg -l python3.10-dev &>/dev/null; then
Expand Down

0 comments on commit 8d11664

Please sign in to comment.