This commit is contained in:
2022-09-05 12:56:45 +03:00
parent 3f922615b4
commit 58407bf90a
+5 -1
View File
@@ -17,10 +17,14 @@ function install() {
cd cd
if ! docker --version; then if ! docker --version; then
echo -e "${C_LGn}Docker installation...${RES}"
echo "upgrade system .."
sudo apt update sudo apt update
sudo apt upgrade -y sudo apt upgrade -y
echo "install components"
sudo apt install curl apt-transport-https ca-certificates gnupg lsb-release -y sudo apt install curl apt-transport-https ca-certificates gnupg lsb-release -y
echo -e "${C_LGn}Docker installation...${RES}"
. /etc/*-release . /etc/*-release
wget -qO- "https://download.docker.com/linux/${DISTRIB_ID,,}/gpg" | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg wget -qO- "https://download.docker.com/linux/${DISTRIB_ID,,}/gpg" | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null