Commit 22e8ac6f authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Improve Docker install

parent f3e930a5
...@@ -645,11 +645,16 @@ fi ...@@ -645,11 +645,16 @@ fi
install_docker () install_docker ()
{ {
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/${family,,} $distribution edge" >\ if [[ $distribution == groovy || $distribution == focal || $distribution == bionic ]]; then
/etc/apt/sources.list.d/docker.list echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu focal edge" > \
curl -fsSL "https://download.docker.com/linux/${family,,}/gpg" | apt-key add -qq - > /dev/null 2>&1 /etc/apt/sources.list.d/docker.list
else
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/debian buster edge" >\
/etc/apt/sources.list.d/docker.list
fi
curl -fsSL "https://download.docker.com/linux/debian/gpg" | apt-key add -qq - > /dev/null 2>&1
debconf-apt-progress -- apt-get update debconf-apt-progress -- apt-get update
debconf-apt-progress -- apt-get install -y -qq --no-install-recommends docker-ce debconf-apt-progress -- apt-get install -y -qq --no-install-recommends docker-ce docker-ce-cli containerd.io
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment